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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -65,7 +65,7 @@ llama = Llama(
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:
 
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 = system_prompt+"\n"
69
 
70
  # Add history to the prompt
71
  for user, bot in history: