yahoo2010 commited on
Commit
6df8e75
·
verified ·
1 Parent(s): 3c1a8e2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -23,10 +23,11 @@ def my_custom_tool(arg1:str, arg2:int)-> str: #it's import to specify the return
23
  return "What magic will you build ?"
24
 
25
  @tool
26
- def my_image_tool()
27
  client = InferenceClient()
28
  image = client.text_to_image("A cute corgi wearing a superhero cape")
29
- image.save("corgi_superhero.png")
 
30
 
31
  @tool
32
  def get_current_time_in_timezone(timezone: str) -> str:
 
23
  return "What magic will you build ?"
24
 
25
  @tool
26
+ def my_image_tool() -> str
27
  client = InferenceClient()
28
  image = client.text_to_image("A cute corgi wearing a superhero cape")
29
+ #image.save("corgi_superhero.png")
30
+ return image
31
 
32
  @tool
33
  def get_current_time_in_timezone(timezone: str) -> str: