From 9608cd77d00a71089526cc8f46f17826ef99463c Mon Sep 17 00:00:00 2001 From: Ming M Qin <38891913+MMelQin@users.noreply.github.com> Date: Tue, 2 Jul 2024 01:30:23 -0700 Subject: [PATCH] Adding missed step for setting input env var to fix the doc issue (#496) Signed-off-by: M Q --- docs/source/getting_started/tutorials/simple_app.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/docs/source/getting_started/tutorials/simple_app.md b/docs/source/getting_started/tutorials/simple_app.md index 3eb0328d..d43fca0c 100644 --- a/docs/source/getting_started/tutorials/simple_app.md +++ b/docs/source/getting_started/tutorials/simple_app.md @@ -53,6 +53,12 @@ pip install scikit-image, setuptools, Pillow, matplotlib # See the input file exists in the default `input`` folder in the current working directory ls examples/apps/simple_imaging_app/input/ +# Set the environment variable for the input, with relative path in this example. +export HOLOSCAN_INPUT_PATH="./examples/apps/simple_imaging_app/input" + +# Env var can also be used to direct the output instead of using the default folder as in the following steps +export HOLOSCAN_OUTPUT_PATH="./output_simple_imaging" + # Local execution of the app with output file in the `output` folder in the current working directory python examples/apps/simple_imaging_app/app.py @@ -72,7 +78,7 @@ docker run --rm simple_app-x64-workstation-dgpu-linux-amd64:latest show # Run the MAP container image with MONAI Deploy MAP Runner, with a cleaned output folder rm -rf output -monai-deploy run simple_app-x64-workstation-dgpu-linux-amd64:latest -i input -o output +monai-deploy run simple_app-x64-workstation-dgpu-linux-amd64:latest -i $HOLOSCAN_INPUT_PATH -o output # Check the output file ls output