Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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:
|