Kastg commited on
Commit
2aab3a6
·
verified ·
1 Parent(s): 64ad7a6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -170,7 +170,7 @@ def upload_image():
170
 
171
 
172
 
173
- @app.route('/generate', methods=['POST'])
174
  async def generate_image():
175
  try:
176
  data = request.json
@@ -204,7 +204,7 @@ async def generate_image():
204
  url = wait.image_url
205
 
206
  # Discord Bot setup
207
- discord_webhook_url = "https://discord.com/api/webhooks/1134794312945778779/DPaF4YGE3l7VMeXI56ft4yAS-5a1cu-C0bgrtU9RtrLgTXHCPFfy17AAB9ABb_IcQ9Pa"
208
 
209
  # Send the generated image URL through the webhook
210
  image_name = f"invite_1080035826051854356_best_bot_ever.png"
 
170
 
171
 
172
 
173
+ @app.route('/image/generate', methods=['POST'])
174
  async def generate_image():
175
  try:
176
  data = request.json
 
204
  url = wait.image_url
205
 
206
  # Discord Bot setup
207
+ discord_webhook_url = "https://discord.com/api/webhooks/1217084642675654717/FpiXr5sLPmFNZ0xDz5HNClwn6NCYNmL2JvwdcGwb7V9FZd9bdPfSPZR41HmGzGD3uR8d"
208
 
209
  # Send the generated image URL through the webhook
210
  image_name = f"invite_1080035826051854356_best_bot_ever.png"