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