Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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=
|
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(
|