Update app.py
Browse files
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 =
|
| 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:
|