Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -26,7 +26,7 @@ def codeinterpreter(openai_key,prompt, files):
|
|
| 26 |
for _file in response.files:
|
| 27 |
images.append(_file.get_image())
|
| 28 |
|
| 29 |
-
return [response.content,images
|
| 30 |
|
| 31 |
|
| 32 |
|
|
@@ -35,6 +35,6 @@ app = gr.Interface(
|
|
| 35 |
gr.Textbox(label="openai_key"),
|
| 36 |
gr.Textbox(label="prompt",info="input the prompt"),
|
| 37 |
gr.Files(),
|
| 38 |
-
], outputs=["text","gallery"
|
| 39 |
)
|
| 40 |
app.launch()
|
|
|
|
| 26 |
for _file in response.files:
|
| 27 |
images.append(_file.get_image())
|
| 28 |
|
| 29 |
+
return [response.content,images]
|
| 30 |
|
| 31 |
|
| 32 |
|
|
|
|
| 35 |
gr.Textbox(label="openai_key"),
|
| 36 |
gr.Textbox(label="prompt",info="input the prompt"),
|
| 37 |
gr.Files(),
|
| 38 |
+
], outputs=["text","gallery"]
|
| 39 |
)
|
| 40 |
app.launch()
|