priyar84 commited on
Commit
179c0d0
·
verified ·
1 Parent(s): 7acf2e1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
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 does nothing yet
15
  Args:
16
- arg1: the first argument
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")