Sneaksie commited on
Commit
e986b61
·
verified ·
1 Parent(s): c86825e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -6
app.py CHANGED
@@ -73,7 +73,7 @@ with open("prompts.yaml", 'r') as stream:
73
 
74
  agent = CodeAgent(
75
  model=model,
76
- tools=[final_answer,string_counter,get_current_time_in_timezone,image_generation_tool], ## add your tools here (don't remove final answer)
77
  max_steps=6,
78
  verbosity_level=1,
79
  grammar=None,
@@ -84,8 +84,4 @@ agent = CodeAgent(
84
  )
85
 
86
 
87
- if __name__ == "__main__":
88
- try:
89
- GradioUI(agent).launch()
90
- except Exception as e:
91
- print(f"Error launching GradioUI: {str(e)}")
 
73
 
74
  agent = CodeAgent(
75
  model=model,
76
+ tools=[final_answer,image_generation_tool,get_current_time_in_timezone], ## add your tools here (don't remove final answer)
77
  max_steps=6,
78
  verbosity_level=1,
79
  grammar=None,
 
84
  )
85
 
86
 
87
+ GradioUI(agent).launch()