Update app.py
Browse files
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 |
-
|
|
|
|
| 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 |
|