Omnibus commited on
Commit
7f86b16
·
verified ·
1 Parent(s): 366537d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -185,7 +185,7 @@ 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{history}')
189
 
190
  resp = run_gpt(
191
  COMPRESS_DATA_PROMPT,
@@ -207,9 +207,9 @@ def summarize(inp,history,data=None):
207
  print ("final" + resp)
208
  history = "result: {}\n".format(resp)
209
  #return history
210
- yield "", (inp,history)
211
 
212
- out = str(json_out)
213
  rawp = out
214
  else:
215
  rawp = "Provide a valid data source"
 
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{history}')]
189
 
190
  resp = run_gpt(
191
  COMPRESS_DATA_PROMPT,
 
207
  print ("final" + resp)
208
  history = "result: {}\n".format(resp)
209
  #return history
210
+ yield "", [(inp,history)]
211
 
212
+ out = str(history)
213
  rawp = out
214
  else:
215
  rawp = "Provide a valid data source"