alishafique commited on
Commit
5211f32
·
verified ·
1 Parent(s): ef264c8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -64,9 +64,9 @@ llama = Llama(
64
 
65
  # Function to generate responses
66
  def generate_response(message, history, system_prompt, temperature, max_new_tokens, top_k, repetition_penalty, top_p):
67
- chat_prompt = system_prompt or (
68
- "Below is an instruction that describes a task. Write a response that appropriately completes the request.\n"
69
- )
70
  # Add history to the prompt
71
  for user, bot in history:
72
  chat_prompt += f"\n### Instruction:{user}\n\n### Response:{bot}\n"
 
64
 
65
  # Function to generate responses
66
  def generate_response(message, history, system_prompt, temperature, max_new_tokens, top_k, repetition_penalty, top_p):
67
+ # chat_prompt = f"You are an Urdu Chatbot. Write an appropriate response for the given instruction: {message} Response:"
68
+ chat_prompt = f"Below is an instruction that describes a task. Write a response that appropriately completes the request.\n"
69
+
70
  # Add history to the prompt
71
  for user, bot in history:
72
  chat_prompt += f"\n### Instruction:{user}\n\n### Response:{bot}\n"