priyar84 commited on
Commit
139bc11
·
verified ·
1 Parent(s): 92eb9da

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -6
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
- 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")
20
 
21
- return generated_image[0]["image"] # This will return the generated image
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