DenverJones commited on
Commit
1af89f7
·
verified ·
1 Parent(s): aefee5e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -22,13 +22,13 @@ client = InferenceClient()
22
  @tool
23
  def generate_image(description: str) -> str:
24
  """
25
- Generates an image based on the given text description.
26
 
27
  Args:
28
- description (str): The textual description of the image to generate.
29
 
30
  Returns:
31
- str: A URL to the generated image or an error message.
32
  """
33
  try:
34
  model_id = "stabilityai/stable-diffusion-xl-base-1.0"
 
22
  @tool
23
  def generate_image(description: str) -> str:
24
  """
25
+ Generates an image based on a given text description.
26
 
27
  Args:
28
+ description (str): A detailed textual description of the image to be generated.
29
 
30
  Returns:
31
+ str: A URL to the generated image or an error message if the generation fails.
32
  """
33
  try:
34
  model_id = "stabilityai/stable-diffusion-xl-base-1.0"