From e48bd6b0596941af9384962f551f478e2f847575 Mon Sep 17 00:00:00 2001 From: adlsdztony Date: Sun, 1 Jun 2025 07:07:47 +0000 Subject: [PATCH] feat: add .env configuration file and update README with configuration details --- monitor/.env | 11 +++++++++++ monitor/.gitignore | 3 +++ monitor/README.md | 11 ++++++----- 3 files changed, 20 insertions(+), 5 deletions(-) create mode 100644 monitor/.env create mode 100644 monitor/.gitignore diff --git a/monitor/.env b/monitor/.env new file mode 100644 index 0000000..d28ba42 --- /dev/null +++ b/monitor/.env @@ -0,0 +1,11 @@ +# This file is only used to configure the monitor. +# Do not write any secret keys or sensitive information here. + +# Monitor configuration +TASK_CONFIG_PATH=../evaluation_examples/test_small.json +EXAMPLES_BASE_PATH=../evaluation_examples/examples +RESULTS_BASE_PATH=../results_operator_aws/pyautogui/screenshot/computer-use-preview +MAX_STEPS=50 +FLASK_PORT=80 +FLASK_HOST=0.0.0.0 +FLASK_DEBUG=true \ No newline at end of file diff --git a/monitor/.gitignore b/monitor/.gitignore new file mode 100644 index 0000000..7cbd9fd --- /dev/null +++ b/monitor/.gitignore @@ -0,0 +1,3 @@ +# this .env file is used to store some paths and some configuration +# It is not secure, so it can be committed to the repository +!.env \ No newline at end of file diff --git a/monitor/README.md b/monitor/README.md index e2d640a..1ead8f2 100644 --- a/monitor/README.md +++ b/monitor/README.md @@ -8,7 +8,7 @@ This monitor provides a visual interface to track the status, progress, and resu - View all tasks grouped by type - Monitor task execution status in real-time -- See detailed execution steps with screenshots +- See detailed execution steps with screenshots and videos - Check task results ## Configuration @@ -17,11 +17,11 @@ The monitor can be configured by editing the `.env` file in the monitor director | Variable | Description | Default Value | |----------|-------------|---------------| -| TASK_CONFIG_PATH | Path to the task configuration JSON file | evaluation_examples/test_small.json | -| EXAMPLES_BASE_PATH | Base path for task example files | evaluation_examples/examples | -| RESULTS_BASE_PATH | Base path for execution results | results_operator_aws/pyautogui/screenshot/computer-use-preview | +| TASK_CONFIG_PATH | Path to the task configuration JSON file | ../evaluation_examples/test_small.json | +| EXAMPLES_BASE_PATH | Base path for task example files | ../evaluation_examples/examples | +| RESULTS_BASE_PATH | Base path for execution results | ../results_operator_aws/pyautogui/screenshot/computer-use-preview | | MAX_STEPS | Maximum steps to display for a task | 50 | -| FLASK_PORT | Port for the web server | 8080 | +| FLASK_PORT | Port for the web server | 80 | | FLASK_HOST | Host address for the web server | 0.0.0.0 | | FLASK_DEBUG | Enable debug mode (true/false) | true | @@ -45,6 +45,7 @@ The recommended way to run the monitor is using Docker with the provided Docker - Docker and Docker Compose installed on your system - OSWorld repository cloned to your local machine +- Environment variables set in the `.env` file ### Starting the Monitor