Omnibus commited on
Commit
55ecf8c
·
verified ·
1 Parent(s): 7b6e1e8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -169,7 +169,7 @@ def compress_data(c,purpose, task, history, result):
169
  def save_memory(purpose, history):
170
  history=str(history)
171
  c=0
172
- out = str(out)
173
  rl = len(out)
174
  print(f'rl:: {rl}')
175
  for i in str(out):
@@ -198,7 +198,7 @@ def save_memory(purpose, history):
198
  for z in range(divi):
199
  print(f's:e :: {s}:{e}')
200
 
201
- hist = history[s:e]
202
 
203
  resp = run_gpt(
204
  SAVE_MEMORY,
@@ -229,7 +229,7 @@ def save_memory(purpose, history):
229
  '''
230
  print ("final" + resp)
231
  #history = "result: {}\n".format(resp)
232
- return history
233
 
234
 
235
 
 
169
  def save_memory(purpose, history):
170
  history=str(history)
171
  c=0
172
+ out = str(history)
173
  rl = len(out)
174
  print(f'rl:: {rl}')
175
  for i in str(out):
 
198
  for z in range(divi):
199
  print(f's:e :: {s}:{e}')
200
 
201
+ hist = out[s:e]
202
 
203
  resp = run_gpt(
204
  SAVE_MEMORY,
 
229
  '''
230
  print ("final" + resp)
231
  #history = "result: {}\n".format(resp)
232
+ return resp
233
 
234
 
235