Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -357,7 +357,12 @@ class GradioUI:
|
|
357 |
file_upload_folder.mkdir(parents=True, exist_ok=True)
|
358 |
|
359 |
# Initialize agents
|
360 |
-
|
|
|
|
|
|
|
|
|
|
|
361 |
|
362 |
if planning_agent is None:
|
363 |
# Handle initialization failure
|
|
|
357 |
file_upload_folder.mkdir(parents=True, exist_ok=True)
|
358 |
|
359 |
# Initialize agents
|
360 |
+
try:
|
361 |
+
planning_agent, _ = self._initialize_agents(new_space_id, temp_dir)
|
362 |
+
except Exception as e:
|
363 |
+
print(f"Error initializing agents: {str(e)}")
|
364 |
+
planning_agent = None
|
365 |
+
return new_space_id, None, None, None, gr.Textbox(f"Failed to initialize agents. Got error: {str(e)}", visible=True)
|
366 |
|
367 |
if planning_agent is None:
|
368 |
# Handle initialization failure
|