Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -11,10 +11,9 @@ from Gradio_UI import GradioUI
|
|
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
|
15 |
Args:
|
16 |
-
|
17 |
-
arg2: the second argument
|
18 |
"""
|
19 |
# Generate image based on the prompt "A cat"
|
20 |
generated_image = image_generator("A cute cat in a field of flowers")
|
|
|
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 |
+
prompt (str): A description of the image to generate. For example, "A cat on the wall".
|
|
|
17 |
"""
|
18 |
# Generate image based on the prompt "A cat"
|
19 |
generated_image = image_generator("A cute cat in a field of flowers")
|