rasyosef commited on
Commit
cc27751
1 Parent(s): db3d063

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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"