Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -51,7 +51,7 @@ def respond(message, chat_history, instruction, temperature=0.7):
|
|
51 |
prompt = format_chat_prompt(message, chat_history, instruction)
|
52 |
chat_history = chat_history + [[message, ""]]
|
53 |
stream = generate_seqs(prompt = prompt,
|
54 |
-
max_new_tokens=
|
55 |
stop_sequence=["\nUser:", "<|endoftext|>"],
|
56 |
temperature=temperature).split('Assistant: ')[-1]
|
57 |
#stop_sequence to not generate the user answer
|
|
|
51 |
prompt = format_chat_prompt(message, chat_history, instruction)
|
52 |
chat_history = chat_history + [[message, ""]]
|
53 |
stream = generate_seqs(prompt = prompt,
|
54 |
+
max_new_tokens=8192,
|
55 |
stop_sequence=["\nUser:", "<|endoftext|>"],
|
56 |
temperature=temperature).split('Assistant: ')[-1]
|
57 |
#stop_sequence to not generate the user answer
|