mohammadKa143 commited on
Commit
c5bdfd0
·
verified ·
1 Parent(s): 669aa07

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +12 -2
app.py CHANGED
@@ -59,7 +59,7 @@ agent = CodeAgent(
59
  my_custom_tool,
60
  get_current_time_in_timezone], ## add your tools here (don't remove final answer)
61
  max_steps=6,
62
- verbosity_level=1,
63
  grammar=None,
64
  planning_interval=None,
65
  name=None,
@@ -68,4 +68,14 @@ agent = CodeAgent(
68
  )
69
 
70
 
71
- GradioUI(agent).launch()
 
 
 
 
 
 
 
 
 
 
 
59
  my_custom_tool,
60
  get_current_time_in_timezone], ## add your tools here (don't remove final answer)
61
  max_steps=6,
62
+ verbosity_level=2,
63
  grammar=None,
64
  planning_interval=None,
65
  name=None,
 
68
  )
69
 
70
 
71
+ # GradioUI(agent).launch()
72
+
73
+
74
+ # Add this:
75
+ try:
76
+ result = agent.run("What time is it in Europe/London?") # Or another test message
77
+ print("Agent Result:", result)
78
+ except Exception as e:
79
+ print("An error occurred during agent run:", e)
80
+ import traceback
81
+ traceback.print_exc() # <--- This will print the full error