artintel235 commited on
Commit
53b5f4f
·
verified ·
1 Parent(s): 904fccb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -70,6 +70,7 @@ async def generate_command(
70
  await interaction.response.defer()
71
 
72
  image_url_or_error = await generate_image_async(prompt, aspect_ratio.value)
 
73
  if image_url_or_error.startswith("http"):
74
  await interaction.followup.send(
75
  f"Here's your generated image based on the prompt '{prompt}' with aspect ratio {aspect_ratio.name}:\n{image_url_or_error}"
 
70
  await interaction.response.defer()
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.startswith("http"):
75
  await interaction.followup.send(
76
  f"Here's your generated image based on the prompt '{prompt}' with aspect ratio {aspect_ratio.name}:\n{image_url_or_error}"