Spaces:
Running
on
L4
Running
on
L4
Update app.py
Browse files
app.py
CHANGED
@@ -814,6 +814,7 @@ def chat_response_stream_multiturn(
|
|
814 |
# history will be appended with message later on
|
815 |
|
816 |
full_prompt = chatml_format(message.strip(), history=history, system_prompt=system_prompt)
|
|
|
817 |
|
818 |
if len(tokenizer.encode(full_prompt)) >= 4050:
|
819 |
raise gr.Error(f"Conversation or prompt is too long, please clear the chatbox or try shorter input.")
|
|
|
814 |
# history will be appended with message later on
|
815 |
|
816 |
full_prompt = chatml_format(message.strip(), history=history, system_prompt=system_prompt)
|
817 |
+
print(full_prompt)
|
818 |
|
819 |
if len(tokenizer.encode(full_prompt)) >= 4050:
|
820 |
raise gr.Error(f"Conversation or prompt is too long, please clear the chatbox or try shorter input.")
|