freddyaboulton commited on
Commit
b072a48
·
1 Parent(s): 8bf0102

Deploy Discord Bot

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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] = ctx.author.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!"