Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -13,6 +13,8 @@ def invoke(openai_api_key, task):
|
|
13 |
|
14 |
if not task:
|
15 |
raise gr.Error("Task is required.")
|
|
|
|
|
16 |
|
17 |
with lock:
|
18 |
os.environ["OPENAI_API_KEY"] = openai_api_key
|
|
|
13 |
|
14 |
if not task:
|
15 |
raise gr.Error("Task is required.")
|
16 |
+
|
17 |
+
#raise gr.Error("Please clone space due to local code execution.")
|
18 |
|
19 |
with lock:
|
20 |
os.environ["OPENAI_API_KEY"] = openai_api_key
|