Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -51,14 +51,11 @@ async def on_message(message):
|
|
51 |
timeout=60 # 60 seconds timeout
|
52 |
)
|
53 |
|
54 |
-
# ๋ก๊น
์ ์ถ๊ฐํ์ฌ ๋ฐํ๊ฐ ํ์ธ
|
55 |
print(f"Predict result: {result}")
|
56 |
|
57 |
-
#
|
58 |
-
|
59 |
-
|
60 |
-
|
61 |
-
await message.channel.send(file=discord.File(result))
|
62 |
except asyncio.TimeoutError:
|
63 |
await message.channel.send("Image generation timed out. Please try again.")
|
64 |
except Exception as e:
|
|
|
51 |
timeout=60 # 60 seconds timeout
|
52 |
)
|
53 |
|
|
|
54 |
print(f"Predict result: {result}")
|
55 |
|
56 |
+
# ํ์ผ ๊ฒฝ๋ก๋ง ์ถ์ถํ์ฌ ์ฌ์ฉ
|
57 |
+
file_path = result[0] # ํํ์ ์ฒซ ๋ฒ์งธ ์์๊ฐ ํ์ผ ๊ฒฝ๋ก
|
58 |
+
await message.channel.send(file=discord.File(file_path))
|
|
|
|
|
59 |
except asyncio.TimeoutError:
|
60 |
await message.channel.send("Image generation timed out. Please try again.")
|
61 |
except Exception as e:
|