xxx1 commited on
Commit
5ab0166
1 Parent(s): 9d3974d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -25,7 +25,7 @@ def caption(input_image):
25
  out = model.generate(**inputs)
26
  return "\n".join(processor.decode(out[0], skip_special_tokens=True))
27
  import openai
28
- openai.api_key=openai_appkey
29
  def gpt3(question,vqa_answer,caption):
30
  prompt=caption+"\n"+question+"\n"+vqa_answer+"\n Tell me the right answer."
31
  response = openai.Completion.create(
 
25
  out = model.generate(**inputs)
26
  return "\n".join(processor.decode(out[0], skip_special_tokens=True))
27
  import openai
28
+ openai.api_key="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"
29
  def gpt3(question,vqa_answer,caption):
30
  prompt=caption+"\n"+question+"\n"+vqa_answer+"\n Tell me the right answer."
31
  response = openai.Completion.create(