Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -268,7 +268,8 @@ def run_gradio_app():
|
|
| 268 |
bot_app.launch()
|
| 269 |
|
| 270 |
# Create a new thread for the gradio app
|
| 271 |
-
|
|
|
|
| 272 |
|
| 273 |
# asyncio.run(run_bot())
|
| 274 |
bot.run(DISCORD_BOT_TOKEN)
|
|
|
|
| 268 |
bot_app.launch()
|
| 269 |
|
| 270 |
# Create a new thread for the gradio app
|
| 271 |
+
gradio_thread = threading.Thread(target=run_gradio_app)
|
| 272 |
+
gradio_thread.start()
|
| 273 |
|
| 274 |
# asyncio.run(run_bot())
|
| 275 |
bot.run(DISCORD_BOT_TOKEN)
|