hra commited on
Commit
099d7ee
1 Parent(s): 59f607f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -124,6 +124,7 @@ def getbabyagianswer(objective,loop_count,openapikey):
124
  return ["Please provide OpenAPI Key","Please provide OpenAPI Key","Please provide OpenAPI Key"]
125
 
126
  os.environ['OPENAI_API_KEY'] = str(openapikey)
 
127
 
128
  final_summary,completed_tasts,all_tasks = main(objective, loop_count)
129
  print("Final Summary:", final_summary)
 
124
  return ["Please provide OpenAPI Key","Please provide OpenAPI Key","Please provide OpenAPI Key"]
125
 
126
  os.environ['OPENAI_API_KEY'] = str(openapikey)
127
+ openai.api_key=str(openapikey)
128
 
129
  final_summary,completed_tasts,all_tasks = main(objective, loop_count)
130
  print("Final Summary:", final_summary)