Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -18,13 +18,16 @@ def my_custom_tool(arg1:str, arg2:int)-> str: #it's import to specify the return
|
|
| 18 |
"""
|
| 19 |
return "What magic will you build ?"
|
| 20 |
|
| 21 |
-
@tool
|
| 22 |
-
def generate_image(prompt
|
| 23 |
-
"""
|
| 24 |
-
|
| 25 |
-
|
| 26 |
-
|
| 27 |
|
|
|
|
|
|
|
|
|
|
| 28 |
return image_generation_tool(prompt)
|
| 29 |
|
| 30 |
|
|
|
|
| 18 |
"""
|
| 19 |
return "What magic will you build ?"
|
| 20 |
|
| 21 |
+
@tool
|
| 22 |
+
def generate_image(prompt: str) -> str:
|
| 23 |
+
"""Génère une image à partir d'une description textuelle.
|
| 24 |
+
|
| 25 |
+
Args:
|
| 26 |
+
prompt (str): Une description de l'image à générer.
|
| 27 |
|
| 28 |
+
Returns:
|
| 29 |
+
str: URL ou chemin de l'image générée.
|
| 30 |
+
"""
|
| 31 |
return image_generation_tool(prompt)
|
| 32 |
|
| 33 |
|