Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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)
|