Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -29,14 +29,13 @@ def codeinterpreter(openai_key,prompt, files):
|
|
| 29 |
return [response.content,images]
|
| 30 |
|
| 31 |
|
|
|
|
|
|
|
|
|
|
| 32 |
|
| 33 |
app = gr.Interface(
|
| 34 |
fn=codeinterpreter,
|
| 35 |
-
inputs=[
|
| 36 |
-
inp1=gr.Textbox(label="openai_key"),
|
| 37 |
-
inp2=gr.Textbox(label="prompt",info="input the prompt"),
|
| 38 |
-
inp3=gr.Files(),
|
| 39 |
-
],
|
| 40 |
outputs=["text","gallery"],
|
| 41 |
examples=[["Plot the nvidea stock vs microsoft stock over the last 6 months.",
|
| 42 |
"Plot a sin wave and show it to me.",
|
|
|
|
| 29 |
return [response.content,images]
|
| 30 |
|
| 31 |
|
| 32 |
+
inp1=gr.Textbox(label="openai_key")
|
| 33 |
+
inp2=gr.Textbox(label="prompt",info="input the prompt")
|
| 34 |
+
inp3=gr.Files()
|
| 35 |
|
| 36 |
app = gr.Interface(
|
| 37 |
fn=codeinterpreter,
|
| 38 |
+
inputs=[inp1,inp2,inp3],
|
|
|
|
|
|
|
|
|
|
|
|
|
| 39 |
outputs=["text","gallery"],
|
| 40 |
examples=[["Plot the nvidea stock vs microsoft stock over the last 6 months.",
|
| 41 |
"Plot a sin wave and show it to me.",
|