acidtib commited on
Commit
88aac3a
·
1 Parent(s): c06f17d

✨ fix: add error handling for GradioUI launch process

Browse files
Files changed (1) hide show
  1. app.py +5 -1
app.py CHANGED
@@ -71,4 +71,8 @@ agent = CodeAgent(
71
  prompt_templates=prompt_templates
72
  )
73
 
74
- GradioUI(agent).launch()
 
 
 
 
 
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)}")