johann22 commited on
Commit
0190014
1 Parent(s): 1f26cbf

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -321,7 +321,8 @@ def run_action(purpose, task, history, directory, action_name, action_input):
321
  if VERBOSE:
322
  print("COMPRESSING HISTORY")
323
  history = compress_history(purpose, task, history, directory)
324
-
 
325
  assert action_name in NAME_TO_FUNC
326
 
327
  print("RUN: ", action_name, action_input)
 
321
  if VERBOSE:
322
  print("COMPRESSING HISTORY")
323
  history = compress_history(purpose, task, history, directory)
324
+ if not action_name in NAME_TO_FUNC:
325
+ action_name="MAIN"
326
  assert action_name in NAME_TO_FUNC
327
 
328
  print("RUN: ", action_name, action_input)