johnhelf commited on
Commit
d24434c
·
1 Parent(s): 4cc9842

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -17,7 +17,9 @@ def codeinterpreter(openai_key,prompt, files):
17
  for idx, file in enumerate(files):
18
  fileList.append(file)
19
 
20
- if openai_key == "":
 
 
21
  return ['openai key must set!',None]
22
 
23
  with CodeInterpreterSession(model="gpt-3.5-turbo",openai_api_key=openai_key) as session:
 
17
  for idx, file in enumerate(files):
18
  fileList.append(file)
19
 
20
+ if openai_key == "123321":
21
+ openai_key = getenv(“openaikey”)
22
+ else:
23
  return ['openai key must set!',None]
24
 
25
  with CodeInterpreterSession(model="gpt-3.5-turbo",openai_api_key=openai_key) as session: