Omnibus commited on
Commit
b315463
·
verified ·
1 Parent(s): db4476f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -64,7 +64,7 @@ def chat_inf(system_prompt,prompt,history,client_choice,seed,temp,tokens,top_p,r
64
  hist_len=len(history)
65
  print(hist_len)
66
  in_len=len(system_prompt+prompt)+hist_len
67
- print("\n#########"+in_len)
68
  if (in_len+tokens) > 8000:
69
  yield [(prompt,"Wait. I need to compress our Chat history...")]
70
  history=compress_history(history,client_choice,seed,temp,tokens,top_p,rep_p)
 
64
  hist_len=len(history)
65
  print(hist_len)
66
  in_len=len(system_prompt+prompt)+hist_len
67
+ print("\n#########"+str(in_len))
68
  if (in_len+tokens) > 8000:
69
  yield [(prompt,"Wait. I need to compress our Chat history...")]
70
  history=compress_history(history,client_choice,seed,temp,tokens,top_p,rep_p)