Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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 =
|
68 |
-
|
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"
|