Z3ktrix commited on
Commit
9420ac5
Β·
verified Β·
1 Parent(s): a68f4be

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
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"Do not under any circumstance, finish or add to the input. Excluded input correction or finishing at all times. 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,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
+