Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -31,10 +31,16 @@ def codeinterpreter(openai_key,prompt, files):
|
|
31 |
|
32 |
|
33 |
app = gr.Interface(
|
34 |
-
fn=codeinterpreter,
|
35 |
-
|
36 |
-
gr.Textbox(label="
|
37 |
-
gr.
|
38 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
39 |
)
|
40 |
app.launch()
|
|
|
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.",
|
43 |
+
"怡亚通最近半年走势",
|
44 |
+
"Plot the bitcoin chart of 2023 YTD"],[inp1]]
|
45 |
)
|
46 |
app.launch()
|