Omnibus commited on
Commit
f957789
·
verified ·
1 Parent(s): 390d110

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -179,14 +179,15 @@ def summarize(inp,history,data=None):
179
  s=0
180
  e=chunk
181
  print(f'e:: {e}')
182
- new_history="Report Title"
183
  task = f'Compile this data to fulfill the task: {task}, and complete the purpose: {purpose}\n'
184
  for z in range(divi):
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
-
 
190
  resp = run_gpt(
191
  COMPRESS_DATA_PROMPT,
192
  stop_tokens=["observation:", "task:", "action:", "thought:"],
 
179
  s=0
180
  e=chunk
181
  print(f'e:: {e}')
182
+ new_history=""
183
  task = f'Compile this data to fulfill the task: {task}, and complete the purpose: {purpose}\n'
184
  for z in range(divi):
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:"],