Omnibus commited on
Commit
ca12bb4
·
verified ·
1 Parent(s): af8aab5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -230,7 +230,7 @@ def compress_history(purpose, task, history):
230
  def call_main(purpose, task, history, action_input, result):
231
  resp = run_gpt(
232
  FINDER,
233
- stop_tokens=["observation:", "task:"],
234
  max_tokens=2096,
235
  seed=random.randint(1,1000000000),
236
  purpose=purpose,
@@ -251,10 +251,11 @@ def call_main(purpose, task, history, action_input, result):
251
  #history += "{}\n".format(line)
252
  return action_name, action_input, history, task, result
253
  else:
254
- pass
255
- #history += "{}\n".format(line)
256
  #assert False, "unknown action: {}".format(line)
257
  #return "UPDATE-TASK", None, history, task
 
258
  if "VERBOSE":
259
  print(history)
260
  return "MAIN", None, history, task, result
 
230
  def call_main(purpose, task, history, action_input, result):
231
  resp = run_gpt(
232
  FINDER,
233
+ stop_tokens=[],
234
  max_tokens=2096,
235
  seed=random.randint(1,1000000000),
236
  purpose=purpose,
 
251
  #history += "{}\n".format(line)
252
  return action_name, action_input, history, task, result
253
  else:
254
+
255
+ history += "{}\n".format(line)
256
  #assert False, "unknown action: {}".format(line)
257
  #return "UPDATE-TASK", None, history, task
258
+ result=history
259
  if "VERBOSE":
260
  print(history)
261
  return "MAIN", None, history, task, result