johnhelf commited on
Commit
27c02bd
1 Parent(s): 9757451

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -10,7 +10,7 @@ from codeinterpreterapi import CodeInterpreterSession
10
 
11
 
12
 
13
- def codeinterpreter(prompt, files):
14
 
15
  async with CodeInterpreterSession(model="gpt-3.5-turbo") as session:
16
  response = await session.generate_response(prompt, files=files)
@@ -20,7 +20,7 @@ def codeinterpreter(prompt, files):
20
 
21
 
22
  app = gr.Interface(
23
- fn=swap_face, inputs=[
24
  gr.TextBox(label="prompt",info="input the prompt"),
25
  gr.Files(),
26
  ], outputs=["text","gallery"]
 
10
 
11
 
12
 
13
+ async def codeinterpreter(prompt, files):
14
 
15
  async with CodeInterpreterSession(model="gpt-3.5-turbo") as session:
16
  response = await session.generate_response(prompt, files=files)
 
20
 
21
 
22
  app = gr.Interface(
23
+ fn=codeinterpreter, inputs=[
24
  gr.TextBox(label="prompt",info="input the prompt"),
25
  gr.Files(),
26
  ], outputs=["text","gallery"]