Spaces:
Running
Running
✨ fix: add error handling for GradioUI launch process
Browse files
app.py
CHANGED
@@ -71,4 +71,8 @@ agent = CodeAgent(
|
|
71 |
prompt_templates=prompt_templates
|
72 |
)
|
73 |
|
74 |
-
|
|
|
|
|
|
|
|
|
|
71 |
prompt_templates=prompt_templates
|
72 |
)
|
73 |
|
74 |
+
if __name__ == "__main__":
|
75 |
+
try:
|
76 |
+
GradioUI(agent).launch()
|
77 |
+
except Exception as e:
|
78 |
+
print(f"Error launching GradioUI: {str(e)}")
|