Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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()
|
| 27 |
client = InferenceClient()
|
| 28 |
-
image = client.text_to_image(
|
| 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 |
|