Spaces:
Sleeping
Sleeping
Commit ·
b072a48
1
Parent(s): 8bf0102
Deploy Discord Bot
Browse files
app.py
CHANGED
|
@@ -91,7 +91,7 @@ async def chat(interaction: discord.Interaction, prompt: str):
|
|
| 91 |
response = job.outputs()[-1]
|
| 92 |
await thread.send(truncate_response(response))
|
| 93 |
thread_to_client[thread.id] = client
|
| 94 |
-
thread_to_user[thread.id] =
|
| 95 |
except QueueError:
|
| 96 |
await thread.send(
|
| 97 |
"The gradio space powering this bot is really busy! Please try again later!"
|
|
|
|
| 91 |
response = job.outputs()[-1]
|
| 92 |
await thread.send(truncate_response(response))
|
| 93 |
thread_to_client[thread.id] = client
|
| 94 |
+
thread_to_user[thread.id] = interaction.author.id
|
| 95 |
except QueueError:
|
| 96 |
await thread.send(
|
| 97 |
"The gradio space powering this bot is really busy! Please try again later!"
|