Update app.py
Browse files
app.py
CHANGED
@@ -76,7 +76,7 @@ async def chat(ctx, prompt: str):
|
|
76 |
try:
|
77 |
job.result()
|
78 |
response = job.outputs()[-1]
|
79 |
-
await ctx.send(truncate_response(response)) # Send the LLM response
|
80 |
except QueueError:
|
81 |
await ctx.send("The gradio space powering this bot is really busy! Please try again later!")
|
82 |
except Exception as e:
|
|
|
76 |
try:
|
77 |
job.result()
|
78 |
response = job.outputs()[-1]
|
79 |
+
await ctx.send(f"```{truncate_response(response)}```") # Send the LLM response
|
80 |
except QueueError:
|
81 |
await ctx.send("The gradio space powering this bot is really busy! Please try again later!")
|
82 |
except Exception as e:
|