SadiaK14 commited on
Commit
aeb846c
·
verified ·
1 Parent(s): 8c4eabd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -6,8 +6,8 @@ import datetime
6
  import requests
7
  import pytz
8
  import yaml
9
- # from tools.final_answer import FinalAnswerTool
10
- from smolagents import tool
11
  from Gradio_UI import GradioUI
12
 
13
  # Custom Tool to fetch datasets related to body parts or imaging types
@@ -136,7 +136,7 @@ model = InferenceClientModel(
136
 
137
 
138
  # Load tool from hub
139
- image_generation_tool = load_tool("agents-course/text-to-image", trust_remote_code=True)
140
 
141
  # Load prompt templates
142
  with open("prompts.yaml", 'r') as stream:
@@ -147,7 +147,7 @@ agent = CodeAgent(
147
  model=model,
148
  tools=[final_answer, get_current_time_in_timezone, my_custom_tool],
149
  max_steps=6,
150
- verbosity_level=1,
151
  planning_interval=None,
152
  name=None,
153
  description=None,
 
6
  import requests
7
  import pytz
8
  import yaml
9
+ from tools.final_answer import FinalAnswerTool
10
+
11
  from Gradio_UI import GradioUI
12
 
13
  # Custom Tool to fetch datasets related to body parts or imaging types
 
136
 
137
 
138
  # Load tool from hub
139
+ # image_generation_tool = load_tool("agents-course/text-to-image", trust_remote_code=True)
140
 
141
  # Load prompt templates
142
  with open("prompts.yaml", 'r') as stream:
 
147
  model=model,
148
  tools=[final_answer, get_current_time_in_timezone, my_custom_tool],
149
  max_steps=6,
150
+ verbosity_level=2,
151
  planning_interval=None,
152
  name=None,
153
  description=None,