Masrkai commited on
Commit
4111411
·
verified ·
1 Parent(s): 377c3d4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -0
app.py CHANGED
@@ -33,6 +33,12 @@ def get_current_time_in_timezone(timezone: str) -> str:
33
  except Exception as e:
34
  return f"Error fetching time for timezone '{timezone}': {str(e)}"
35
 
 
 
 
 
 
 
36
 
37
  final_answer = FinalAnswerTool()
38
 
 
33
  except Exception as e:
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