artintel235 commited on
Commit
5b3007f
·
verified ·
1 Parent(s): 3eab681

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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 not None:
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}"