Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -33,10 +33,9 @@ def run_hardy_cross(file, loops_json, max_iterations, tolerance):
|
|
| 33 |
plot_path
|
| 34 |
)
|
| 35 |
except Exception as e:
|
| 36 |
-
# Full traceback for clear debugging in output
|
| 37 |
-
|
| 38 |
-
{
|
| 39 |
-
```"
|
| 40 |
return error_message, "", ""
|
| 41 |
|
| 42 |
demo = gr.Interface(
|
|
|
|
| 33 |
plot_path
|
| 34 |
)
|
| 35 |
except Exception as e:
|
| 36 |
+
# Full traceback for clear debugging in output (corrected syntax)
|
| 37 |
+
tb = traceback.format_exc()
|
| 38 |
+
error_message = f"❌ **Error:** {str(e)}\n\n```\n{tb}\n```"
|
|
|
|
| 39 |
return error_message, "", ""
|
| 40 |
|
| 41 |
demo = gr.Interface(
|