AScythe commited on
Commit
8f80272
·
verified ·
1 Parent(s): b6a4a8f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -6
app.py CHANGED
@@ -38,11 +38,11 @@ def get_current_time_in_timezone(timezone: str) -> str:
38
  except Exception as e:
39
  return f"Error fetching time for timezone '{timezone}': {str(e)}"
40
 
41
- image_generation_tool = Tool.from_space(
42
- "black-forest-labs/FLUX.1-schnell",
43
- name="image_generator",
44
- description="Generate an image from a prompt"
45
- )
46
 
47
  # @tool
48
  # def display_image(path: str) -> str:
@@ -77,7 +77,7 @@ def convert_currency(amount: float, from_currency: str, to_currency: str) -> flo
77
 
78
 
79
  # Import tool from Hub
80
- # image_generation_tool = load_tool("agents-course/text-to-image", trust_remote_code=True)
81
  # search_tool = DuckDuckGoSearchTool()
82
 
83
  final_answer = FinalAnswerTool()
 
38
  except Exception as e:
39
  return f"Error fetching time for timezone '{timezone}': {str(e)}"
40
 
41
+ # image_generation_tool = Tool.from_space(
42
+ # "black-forest-labs/FLUX.1-schnell",
43
+ # name="image_generator",
44
+ # description="Generate an image from a prompt"
45
+ # )
46
 
47
  # @tool
48
  # def display_image(path: str) -> str:
 
77
 
78
 
79
  # Import tool from Hub
80
+ image_generation_tool = load_tool("agents-course/text-to-image", trust_remote_code=True)
81
  # search_tool = DuckDuckGoSearchTool()
82
 
83
  final_answer = FinalAnswerTool()