Masrkai commited on
Commit
694e560
·
verified ·
1 Parent(s): 4111411

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -5
app.py CHANGED
@@ -34,11 +34,12 @@ def get_current_time_in_timezone(timezone: str) -> str:
34
  return f"Error fetching time for timezone '{timezone}': {str(e)}"
35
 
36
  @tool
37
- def image_generation_tool = Tool.from_space(
38
- "black-forest-labs/FLUX.1-schnell",
39
- name="image_generator",
40
- description="Generate an image from a prompt"
41
- )
 
42
 
43
  final_answer = FinalAnswerTool()
44
 
 
34
  return f"Error fetching time for timezone '{timezone}': {str(e)}"
35
 
36
  @tool
37
+ def image_generation_tool():
38
+ return Tool.from_space(
39
+ "black-forest-labs/FLUX.1-schnell",
40
+ name="image_generator",
41
+ description="Generate an image from a prompt"
42
+ )
43
 
44
  final_answer = FinalAnswerTool()
45