mohammadKa143 commited on
Commit
5fedf5c
·
verified ·
1 Parent(s): c61b1ca

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -14
app.py CHANGED
@@ -55,9 +55,7 @@ with open("prompts.yaml", 'r') as stream:
55
 
56
  agent = CodeAgent(
57
  model=model,
58
- tools=[final_answer,
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,
@@ -68,14 +66,4 @@ agent = CodeAgent(
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
 
55
 
56
  agent = CodeAgent(
57
  model=model,
58
+ tools=[final_answer], ## add your tools here (don't remove final answer)
 
 
59
  max_steps=6,
60
  verbosity_level=1,
61
  grammar=None,
 
66
  )
67
 
68
 
69
+ GradioUI(agent).launch()