Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -22,7 +22,7 @@ phi2 = pipeline(
|
|
22 |
)
|
23 |
|
24 |
# Function that accepts a prompt and generates text using the phi2 pipeline
|
25 |
-
def generate(message, chat_history, max_new_tokens):
|
26 |
|
27 |
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'."
|
28 |
final_prompt = f"Instruction: {instruction}\n"
|
|
|
22 |
)
|
23 |
|
24 |
# Function that accepts a prompt and generates text using the phi2 pipeline
|
25 |
+
def generate(message, chat_history, max_new_tokens=21):
|
26 |
|
27 |
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'."
|
28 |
final_prompt = f"Instruction: {instruction}\n"
|