ogghst commited on
Commit
7f0352d
·
verified ·
1 Parent(s): f7a2733

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -4,7 +4,7 @@ import requests
4
  import pytz
5
  import yaml
6
  from tools.final_answer import FinalAnswerTool
7
- from tools.web_search import DuckDuckGoSearchTool
8
  from tools.visit_webpage import VisitWebpageTool
9
 
10
  from Gradio_UI import GradioUI
@@ -50,6 +50,9 @@ final_answer = FinalAnswerTool()
50
  web_search_tool = DuckDuckGoSearchTool()
51
  visit_webpage_tool = VisitWebpageTool()
52
 
 
 
 
53
 
54
  # If the agent does not answer, the model is overloaded, please use another model or the following Hugging Face Endpoint that also contains qwen2.5 coder:
55
  # model_id='https://pflgm2locj2t89co.us-east-1.aws.endpoints.huggingface.cloud'
@@ -63,8 +66,6 @@ custom_role_conversions=None,
63
  )
64
 
65
 
66
- # Import tool from Hub
67
- image_generation_tool = load_tool("agents-course/text-to-image", trust_remote_code=True)
68
 
69
  with open("prompts.yaml", 'r') as stream:
70
  prompt_templates = yaml.safe_load(stream)
 
4
  import pytz
5
  import yaml
6
  from tools.final_answer import FinalAnswerTool
7
+ #from tools.web_search import DuckDuckGoSearchTool
8
  from tools.visit_webpage import VisitWebpageTool
9
 
10
  from Gradio_UI import GradioUI
 
50
  web_search_tool = DuckDuckGoSearchTool()
51
  visit_webpage_tool = VisitWebpageTool()
52
 
53
+ # Import tool from Hub
54
+ image_generation_tool = load_tool("agents-course/text-to-image", trust_remote_code=True)
55
+
56
 
57
  # If the agent does not answer, the model is overloaded, please use another model or the following Hugging Face Endpoint that also contains qwen2.5 coder:
58
  # model_id='https://pflgm2locj2t89co.us-east-1.aws.endpoints.huggingface.cloud'
 
66
  )
67
 
68
 
 
 
69
 
70
  with open("prompts.yaml", 'r') as stream:
71
  prompt_templates = yaml.safe_load(stream)