AEUPH commited on
Commit
be2c81a
·
verified ·
1 Parent(s): 0568694

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -72,10 +72,10 @@ class SecondLifeNavigator:
72
  return f"Error sending command to Corrade: {e}", None
73
  def create_interface():
74
  def navigate(current_state):
75
- dataset_path = os.getenv('DATASET_PATH') # Assuming the dataset path is set in an environment variable
76
  endpoint = os.getenv('CORRADE_ENDPOINT', '') # Ensure this environment variable is correctly set.
77
  sl_navigator = SecondLifeNavigator()
78
- action_sequence = sl_navigator.run(current_state, endpoint)
 
79
  random_id = str(uuid.uuid4())
80
  return random_id + ": " + action_sequence
81
 
 
72
  return f"Error sending command to Corrade: {e}", None
73
  def create_interface():
74
  def navigate(current_state):
 
75
  endpoint = os.getenv('CORRADE_ENDPOINT', '') # Ensure this environment variable is correctly set.
76
  sl_navigator = SecondLifeNavigator()
77
+ # Use determine_action_sequence instead of run
78
+ action_sequence = sl_navigator.determine_action_sequence(current_state, endpoint)
79
  random_id = str(uuid.uuid4())
80
  return random_id + ": " + action_sequence
81