mohammadKa143 commited on
Commit
96e1386
·
verified ·
1 Parent(s): 632b5c9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -2
app.py CHANGED
@@ -5,7 +5,7 @@ import pytz
5
  import yaml
6
  from tools.final_answer import FinalAnswerTool
7
 
8
- from Gradio_UI import GradioUI
9
 
10
  # Below is an example of a tool that does nothing. Amaze us with your creativity !
11
  @tool
@@ -66,4 +66,11 @@ agent = CodeAgent(
66
  )
67
 
68
 
69
- GradioUI(agent).launch()
 
 
 
 
 
 
 
 
5
  import yaml
6
  from tools.final_answer import FinalAnswerTool
7
 
8
+ # from Gradio_UI import GradioUI
9
 
10
  # Below is an example of a tool that does nothing. Amaze us with your creativity !
11
  @tool
 
66
  )
67
 
68
 
69
+ # GradioUI(agent).launch()
70
+ try:
71
+ result = agent.run("What weather is it in Europe/London?") # Or another test message
72
+ print("Agent Result:", result)
73
+ except Exception as e:
74
+ print("An error occurred during agent run:", e)
75
+ import traceback
76
+ traceback.print_exc() # <--- This will print the full error