johnhelf commited on
Commit
7d6868c
1 Parent(s): 11f72a1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -10,11 +10,11 @@ from codeinterpreterapi import CodeInterpreterSession
10
 
11
 
12
 
13
- async def codeinterpreter(openai_key,prompt, files):
14
 
15
- async with CodeInterpreterSession(model="gpt-3.5",openai_api_key=openai_key) as session:
16
  #async with CodeInterpreterSession(model="gpt-3.5-turbo",openai_api_key="") as session:
17
- response = await session.generate_response(prompt, files=files)
18
 
19
  return [response.content,response.files]
20
 
 
10
 
11
 
12
 
13
+ def codeinterpreter(openai_key,prompt, files):
14
 
15
+ with CodeInterpreterSession(model="gpt-3.5",openai_api_key=openai_key) as session:
16
  #async with CodeInterpreterSession(model="gpt-3.5-turbo",openai_api_key="") as session:
17
+ response = session.generate_response(prompt, files=files)
18
 
19
  return [response.content,response.files]
20