johnhelf commited on
Commit
f8d739b
·
1 Parent(s): f905e84

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -5
app.py CHANGED
@@ -31,10 +31,16 @@ def codeinterpreter(openai_key,prompt, files):
31
 
32
 
33
  app = gr.Interface(
34
- fn=codeinterpreter, inputs=[
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()
 
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()