Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -185,9 +185,8 @@ def summarize(inp,history,data=None):
|
|
185 |
print(f's:e :: {s}:{e}')
|
186 |
mes= f'Working on data chunk: {s}:{e}'
|
187 |
hist = out[s:e]
|
|
|
188 |
yield "", [(inp,f'{mes}\n{new_history}')]
|
189 |
-
if new_history =="":
|
190 |
-
new_history = ""
|
191 |
resp = run_gpt(
|
192 |
COMPRESS_DATA_PROMPT,
|
193 |
stop_tokens=["observation:", "task:", "action:", "thought:"],
|
|
|
185 |
print(f's:e :: {s}:{e}')
|
186 |
mes= f'Working on data chunk: {s}:{e}'
|
187 |
hist = out[s:e]
|
188 |
+
print(f'hist::\n{hist}')
|
189 |
yield "", [(inp,f'{mes}\n{new_history}')]
|
|
|
|
|
190 |
resp = run_gpt(
|
191 |
COMPRESS_DATA_PROMPT,
|
192 |
stop_tokens=["observation:", "task:", "action:", "thought:"],
|