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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -23,9 +23,9 @@ 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() -> 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
 
 
23
  return "What magic will you build ?"
24
 
25
  @tool
26
+ def my_image_tool(prompt:str) #"A cute corgi wearing a superhero cape"
27
  client = InferenceClient()
28
+ image = client.text_to_image(prompt)
29
  #image.save("corgi_superhero.png")
30
  return image
31