Jekaterina commited on
Commit
3403adb
·
verified ·
1 Parent(s): 019a1ba

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -7,6 +7,7 @@ import yaml
7
  from tools.final_answer import FinalAnswerTool
8
  from tools.visit_webpage import VisitWebpageTool
9
  from tools.web_search import DuckDuckGoSearchTool
 
10
 
11
  from Gradio_UI import GradioUI
12
 
@@ -41,8 +42,7 @@ def get_current_time_in_timezone(timezone: str) -> str:
41
  visit_webpage = VisitWebpageTool()
42
  web_search = DuckDuckGoSearchTool()
43
  final_answer = FinalAnswerTool()
44
- # Import tool from Hub
45
- image_generation_tool = load_tool("agents-course/text-to-image", trust_remote_code=True)
46
 
47
  '''
48
  model = HfApiModel(
 
7
  from tools.final_answer import FinalAnswerTool
8
  from tools.visit_webpage import VisitWebpageTool
9
  from tools.web_search import DuckDuckGoSearchTool
10
+ from tools.text_to_image import TextToImageTool
11
 
12
  from Gradio_UI import GradioUI
13
 
 
42
  visit_webpage = VisitWebpageTool()
43
  web_search = DuckDuckGoSearchTool()
44
  final_answer = FinalAnswerTool()
45
+ image_generation_tool = TextToImageTool()
 
46
 
47
  '''
48
  model = HfApiModel(