Spaces:
Sleeping
Sleeping
Update app/gradio_interface.py
Browse files- app/gradio_interface.py +7 -0
app/gradio_interface.py
CHANGED
@@ -124,13 +124,20 @@ class GradioInterface:
|
|
124 |
# Start processing in a separate thread to avoid blocking the UI
|
125 |
def process_thread():
|
126 |
try:
|
|
|
127 |
# Use synchronized workflow for better control
|
128 |
result = self.orchestrator.coordinate_workflow_with_synchronization(
|
129 |
session, topic, text_file_paths, image_file_paths)
|
|
|
|
|
|
|
|
|
130 |
|
131 |
# Store result for UI access
|
132 |
self.active_sessions[session] = result
|
|
|
133 |
except Exception as e:
|
|
|
134 |
self.active_sessions[session] = {"error": str(e), "status": "error"}
|
135 |
|
136 |
# Start processing thread
|
|
|
124 |
# Start processing in a separate thread to avoid blocking the UI
|
125 |
def process_thread():
|
126 |
try:
|
127 |
+
print("Starting workflow processing thread")
|
128 |
# Use synchronized workflow for better control
|
129 |
result = self.orchestrator.coordinate_workflow_with_synchronization(
|
130 |
session, topic, text_file_paths, image_file_paths)
|
131 |
+
|
132 |
+
|
133 |
+
print(f"Workflow completed with result status: {result.get('status', 'unknown')}")
|
134 |
+
print(f"Result keys: {result.keys() if isinstance(result, dict) else 'Not a dict'}")
|
135 |
|
136 |
# Store result for UI access
|
137 |
self.active_sessions[session] = result
|
138 |
+
print(f"Updated session {session} with result")
|
139 |
except Exception as e:
|
140 |
+
print(f"ERROR in processing thread: {str(e)}")
|
141 |
self.active_sessions[session] = {"error": str(e), "status": "error"}
|
142 |
|
143 |
# Start processing thread
|