Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -147,6 +147,7 @@ def compress_data(c,purpose, task, history):
|
|
| 147 |
s=0
|
| 148 |
e=chunk
|
| 149 |
print(f'e:: {e}')
|
|
|
|
| 150 |
for z in range(divi):
|
| 151 |
print(f's:e :: {s}:{e}')
|
| 152 |
|
|
@@ -158,8 +159,10 @@ def compress_data(c,purpose, task, history):
|
|
| 158 |
max_tokens=512,
|
| 159 |
purpose=purpose,
|
| 160 |
task=task,
|
|
|
|
| 161 |
history=history,
|
| 162 |
)
|
|
|
|
| 163 |
print (resp)
|
| 164 |
out+=resp
|
| 165 |
e=e+chunk
|
|
|
|
| 147 |
s=0
|
| 148 |
e=chunk
|
| 149 |
print(f'e:: {e}')
|
| 150 |
+
new_history=""
|
| 151 |
for z in range(divi):
|
| 152 |
print(f's:e :: {s}:{e}')
|
| 153 |
|
|
|
|
| 159 |
max_tokens=512,
|
| 160 |
purpose=purpose,
|
| 161 |
task=task,
|
| 162 |
+
knowledge=new_history,
|
| 163 |
history=history,
|
| 164 |
)
|
| 165 |
+
new_history = resp
|
| 166 |
print (resp)
|
| 167 |
out+=resp
|
| 168 |
e=e+chunk
|