Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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=
|
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"]
|