artintel235 commited on
Commit
728d1dd
·
verified ·
1 Parent(s): 53b5f4f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -70,7 +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
- 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}"
 
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}"