nxphi47 commited on
Commit
e1b4905
1 Parent(s): 97e3807

Update app.py

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