DenverJones commited on
Commit
26be523
·
verified ·
1 Parent(s): e934dc9

Update app.py

Browse files

Adding more details to the docstring

Files changed (1) hide show
  1. app.py +11 -5
app.py CHANGED
@@ -49,13 +49,19 @@ image_generation_tool = load_tool("agents-course/text-to-image", trust_remote_co
49
  @tool
50
  def generate_line_drawing_image(description: str) -> str:
51
  """
52
- Generates a line drawing image based on the given description.
53
 
54
- Args:
55
- description (str): A descriptive text prompt for the image.
56
- (e.g., "A cat sitting on a windowsill", "A futuristic cityscape")
57
 
58
- Returns:
 
 
 
 
 
 
 
59
  str: A URL to the generated image.
60
  """
61
  try:
 
49
  @tool
50
  def generate_line_drawing_image(description: str) -> str:
51
  """
52
+ Generates a line drawing image based on the given text description.
53
 
54
+ This tool utilizes a text-to-image model to create a line drawing
55
+ representation of the provided description.
 
56
 
57
+ Args:
58
+ description (str): A descriptive text prompt for the image.
59
+ For best results, be as specific as possible in your description.
60
+ Examples:
61
+ - "A cat sitting on a windowsill, looking out at a rainy day"
62
+ - "A futuristic cityscape with towering skyscrapers and flying cars"
63
+
64
+ Returns:
65
  str: A URL to the generated image.
66
  """
67
  try: