Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -67,7 +67,7 @@ async def ask(ctx, question: str, temperature: float = 0.5, max_tokens: int = 10
|
|
67 |
return
|
68 |
|
69 |
# Create a structured prompt
|
70 |
-
prompt = f"
|
71 |
response = query_huggingface(prompt, temperature, max_tokens, top_k, top_p)
|
72 |
|
73 |
# Extract and clean the response
|
@@ -115,3 +115,4 @@ async def help_custom(ctx):
|
|
115 |
|
116 |
# Run the bot
|
117 |
bot.run(DISCORD_TOKEN)
|
|
|
|
67 |
return
|
68 |
|
69 |
# Create a structured prompt
|
70 |
+
prompt = f"Answer the following question as accurately and concisely as possible: {question}"
|
71 |
response = query_huggingface(prompt, temperature, max_tokens, top_k, top_p)
|
72 |
|
73 |
# Extract and clean the response
|
|
|
115 |
|
116 |
# Run the bot
|
117 |
bot.run(DISCORD_TOKEN)
|
118 |
+
|