Omnibus commited on
Commit
d5056bd
·
verified ·
1 Parent(s): 0310b17

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -459,7 +459,7 @@ def save_memory(purpose, history):
459
  lod = json.loads(r.text)
460
  #lod = eval(lod)
461
  print (f'lod:: {lod}')
462
- else:
463
  lod = []
464
  for i,line in enumerate(lines):
465
  key_box=[]
@@ -497,8 +497,8 @@ def save_memory(purpose, history):
497
  token=token_self,
498
  repo_type="dataset",
499
  )
500
- ee=ee+chunk-1000
501
- s=s+chunk-1000
502
  out_box.append(resp)
503
  return out_box
504
 
 
459
  lod = json.loads(r.text)
460
  #lod = eval(lod)
461
  print (f'lod:: {lod}')
462
+ if not r.status_code==200:
463
  lod = []
464
  for i,line in enumerate(lines):
465
  key_box=[]
 
497
  token=token_self,
498
  repo_type="dataset",
499
  )
500
+ ee=ee+chunk
501
+ s=s+chunk
502
  out_box.append(resp)
503
  return out_box
504