Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -19,7 +19,7 @@ def codeinterpreter(openai_key,prompt, files):
|
|
19 |
|
20 |
with CodeInterpreterSession(model="gpt-3.5",openai_api_key=openai_key) as session:
|
21 |
#async with CodeInterpreterSession(model="gpt-3.5-turbo",openai_api_key="") as session:
|
22 |
-
response = session.generate_response_sync(prompt, fileList)
|
23 |
|
24 |
return [response.content,response.files]
|
25 |
|
|
|
19 |
|
20 |
with CodeInterpreterSession(model="gpt-3.5",openai_api_key=openai_key) as session:
|
21 |
#async with CodeInterpreterSession(model="gpt-3.5-turbo",openai_api_key="") as session:
|
22 |
+
response = session.generate_response_sync(prompt, fileList,True)
|
23 |
|
24 |
return [response.content,response.files]
|
25 |
|