Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -71,7 +71,7 @@ async def generate_command(
|
|
71 |
|
72 |
image_url_or_error = await generate_image_async(prompt, aspect_ratio.value)
|
73 |
# await interaction.response.send_message(f"Error:{image_url_or_error}")
|
74 |
-
if image_url_or_error
|
75 |
# if image_url_or_error.startswith("http"):
|
76 |
await interaction.followup.send(
|
77 |
# f"Here's your generated image based on the prompt '{prompt}' with aspect ratio {aspect_ratio.name}:\n{image_url_or_error}"
|
|
|
71 |
|
72 |
image_url_or_error = await generate_image_async(prompt, aspect_ratio.value)
|
73 |
# await interaction.response.send_message(f"Error:{image_url_or_error}")
|
74 |
+
if image_url_or_error:
|
75 |
# if image_url_or_error.startswith("http"):
|
76 |
await interaction.followup.send(
|
77 |
# f"Here's your generated image based on the prompt '{prompt}' with aspect ratio {aspect_ratio.name}:\n{image_url_or_error}"
|