arunprasadh commited on
Commit
3db7f0d
·
verified ·
1 Parent(s): 8b05b39

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -7
app.py CHANGED
@@ -54,13 +54,9 @@ custom_role_conversions=None,
54
  @tool
55
  def generate_image_from_text(prompt: str) -> None:
56
  """
57
- Generates an image based on the given text prompt and displays it.
58
-
59
- Parameters:
60
- prompt: The text description of the image to be generated.
61
-
62
- Returns:
63
- None: This function displays the generated image but does not return any value.
64
  """
65
  try:
66
  # Load the image generation tool
 
54
  @tool
55
  def generate_image_from_text(prompt: str) -> None:
56
  """
57
+ A tool that generates an image based on the given text prompt and displays it.
58
+ Args:
59
+ prompt: A string describing the image to be generated.
 
 
 
 
60
  """
61
  try:
62
  # Load the image generation tool