Spaces:
Sleeping
Sleeping
Ryan
commited on
Commit
·
e41c9c7
1
Parent(s):
8738bd2
update
Browse files
app.py
CHANGED
@@ -110,10 +110,14 @@ def create_app():
|
|
110 |
try:
|
111 |
results, output = process_analysis_request(dataset, selected_analyses, params)
|
112 |
print(f"Analysis completed: {results}")
|
113 |
-
|
114 |
-
|
|
|
115 |
except Exception as e:
|
|
|
|
|
116 |
print(f"Error in analysis: {e}")
|
|
|
117 |
return {}, gr.update(visible=True, value={"error": f"Analysis error: {str(e)}"})
|
118 |
|
119 |
# Run analysis with proper parameters
|
|
|
110 |
try:
|
111 |
results, output = process_analysis_request(dataset, selected_analyses, params)
|
112 |
print(f"Analysis completed: {results}")
|
113 |
+
|
114 |
+
# Output is already a dictionary, don't try to access .value
|
115 |
+
return results, gr.update(visible=True, value=output)
|
116 |
except Exception as e:
|
117 |
+
import traceback
|
118 |
+
error_trace = traceback.format_exc()
|
119 |
print(f"Error in analysis: {e}")
|
120 |
+
print(f"Full traceback: {error_trace}")
|
121 |
return {}, gr.update(visible=True, value={"error": f"Analysis error: {str(e)}"})
|
122 |
|
123 |
# Run analysis with proper parameters
|