Update app.py
Browse files
app.py
CHANGED
@@ -24,7 +24,7 @@ llama = Llama(
|
|
24 |
)
|
25 |
|
26 |
|
27 |
-
|
28 |
# def generate_response(message, history, system_prompt, temperature, max_new_tokens, top_k, repetition_penalty, top_p):
|
29 |
# # chat_prompt = f"You are an Urdu Chatbot. Write an appropriate response for the given instruction: {message} Response:"
|
30 |
# chat_prompt = f"{system_prompt}\n ### Instruction: {message}\n ### Response:"
|
|
|
24 |
)
|
25 |
|
26 |
|
27 |
+
## Function to generate responses
|
28 |
# def generate_response(message, history, system_prompt, temperature, max_new_tokens, top_k, repetition_penalty, top_p):
|
29 |
# # chat_prompt = f"You are an Urdu Chatbot. Write an appropriate response for the given instruction: {message} Response:"
|
30 |
# chat_prompt = f"{system_prompt}\n ### Instruction: {message}\n ### Response:"
|