Spaces:
Paused
Paused
Kastg
commited on
Update app.py
Browse files
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/
|
| 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"
|