Update app.py
Browse files
app.py
CHANGED
@@ -31,7 +31,8 @@ phi2 = pipeline(
|
|
31 |
|
32 |
# Function that accepts a prompt and generates text using the phi2 pipeline
|
33 |
def generate(message, chat_history, max_new_tokens):
|
34 |
-
instruction = "You are a helpful assistant to 'User'. You do not respond as 'User' or pretend to be 'User'. You only respond once as 'Assistant'."
|
|
|
35 |
final_prompt = f"Instruction: {instruction}\n"
|
36 |
|
37 |
for sent, received in chat_history:
|
|
|
31 |
|
32 |
# Function that accepts a prompt and generates text using the phi2 pipeline
|
33 |
def generate(message, chat_history, max_new_tokens):
|
34 |
+
#instruction = "You are a helpful assistant to 'User'. You do not respond as 'User' or pretend to be 'User'. You only respond once as 'Assistant'."
|
35 |
+
instruction = "You are a helpful assistant to 'User'. You will answer any question for 'User'."
|
36 |
final_prompt = f"Instruction: {instruction}\n"
|
37 |
|
38 |
for sent, received in chat_history:
|