Omnibus commited on
Commit
28de501
·
verified ·
1 Parent(s): 646063a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -180,7 +180,7 @@ def compress_data(c,purpose, task, history, result):
180
  hist = history[s:e]
181
 
182
  resp = run_gpt(
183
- COMPRESS_DATA_PROMPT_SMALL,
184
  stop_tokens=["observation:", "task:", "action:", "thought:"],
185
  max_tokens=2048,
186
  seed=seed,
@@ -194,7 +194,7 @@ def compress_data(c,purpose, task, history, result):
194
  out+=resp
195
  e=e+chunk
196
  s=s+chunk
197
-
198
  resp = run_gpt(
199
  COMPRESS_DATA_PROMPT,
200
  stop_tokens=["observation:", "task:", "action:", "thought:"],
@@ -205,6 +205,7 @@ def compress_data(c,purpose, task, history, result):
205
  knowledge=new_history,
206
  history=result,
207
  )
 
208
  print ("final" + resp)
209
  history = "result: {}\n".format(resp)
210
  return history
 
180
  hist = history[s:e]
181
 
182
  resp = run_gpt(
183
+ COMPRESS_DATA_PROMPT,
184
  stop_tokens=["observation:", "task:", "action:", "thought:"],
185
  max_tokens=2048,
186
  seed=seed,
 
194
  out+=resp
195
  e=e+chunk
196
  s=s+chunk
197
+ '''
198
  resp = run_gpt(
199
  COMPRESS_DATA_PROMPT,
200
  stop_tokens=["observation:", "task:", "action:", "thought:"],
 
205
  knowledge=new_history,
206
  history=result,
207
  )
208
+ '''
209
  print ("final" + resp)
210
  history = "result: {}\n".format(resp)
211
  return history