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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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,response.files]
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","files"]
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()