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