Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -190,7 +190,7 @@ def evaluate(
|
|
190 |
try:
|
191 |
output = get_response_from_openai(prompt_0shot)
|
192 |
except:
|
193 |
-
output = "<Remember to input your OpenAI API key
|
194 |
else:
|
195 |
RuntimeError(f"No such LLM: {llm}")
|
196 |
|
@@ -267,6 +267,7 @@ with gr.Blocks(theme=theme) as demo:
|
|
267 |
gr.Markdown(
|
268 |
"""<p style='text-align: center'><a href='https://arxiv.org/abs/2212.10505' target='_blank'>DePlot: One-shot visual language reasoning by plot-to-table translation</a></p>"""
|
269 |
)
|
|
|
270 |
openai_api_key_textbox.change(set_openai_api_key,
|
271 |
inputs=[openai_api_key_textbox],
|
272 |
outputs=[])
|
|
|
190 |
try:
|
191 |
output = get_response_from_openai(prompt_0shot)
|
192 |
except:
|
193 |
+
output = "<Remember to input your OpenAI API key ☺>"
|
194 |
else:
|
195 |
RuntimeError(f"No such LLM: {llm}")
|
196 |
|
|
|
267 |
gr.Markdown(
|
268 |
"""<p style='text-align: center'><a href='https://arxiv.org/abs/2212.10505' target='_blank'>DePlot: One-shot visual language reasoning by plot-to-table translation</a></p>"""
|
269 |
)
|
270 |
+
openai.api_key = ""
|
271 |
openai_api_key_textbox.change(set_openai_api_key,
|
272 |
inputs=[openai_api_key_textbox],
|
273 |
outputs=[])
|