Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -9,16 +9,15 @@ from Gradio_UI import GradioUI
|
|
9 |
|
10 |
# Below is an example of a tool that does nothing. Amaze us with your creativity !
|
11 |
@tool
|
12 |
-
def my_image_tool(prompt: str) -> str: #it's import to specify the return type
|
13 |
#Keep this format for the description / args / args description but feel free to modify the tool
|
14 |
"""A tool that generates image from the prompt
|
15 |
-
|
16 |
-
|
17 |
-
"""
|
18 |
# Generate image based on the prompt "A cat"
|
19 |
-
|
20 |
|
21 |
-
|
22 |
#return "What magic will you build ?"
|
23 |
|
24 |
@tool
|
|
|
9 |
|
10 |
# Below is an example of a tool that does nothing. Amaze us with your creativity !
|
11 |
@tool
|
12 |
+
#def my_image_tool(prompt: str) -> str: #it's import to specify the return type
|
13 |
#Keep this format for the description / args / args description but feel free to modify the tool
|
14 |
"""A tool that generates image from the prompt
|
15 |
+
# Args:
|
16 |
+
# """
|
|
|
17 |
# Generate image based on the prompt "A cat"
|
18 |
+
# generated_image = image_generator("A cute cat in a field of flowers")
|
19 |
|
20 |
+
# return generated_image[0]["image"] # This will return the generated image
|
21 |
#return "What magic will you build ?"
|
22 |
|
23 |
@tool
|