Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .project/spec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ execution:
start_command: |-
cd /project/code/tutorial_app && \
export PROXY_PREFIX && \
.venv/bin/streamlit run app.py --server.baseUrlPath=$PROXY_PREFIX
streamlit run app.py --server.baseUrlPath=$PROXY_PREFIX
health_check_command: curl -I http://localhost:8501
stop_command: |
pkill -9 -f 'streamlit run app.py'
Expand Down
1 change: 1 addition & 0 deletions apt.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ jq
less
make
pandoc
pipx
python3.10-venv
skopeo
unzip
Expand Down
3 changes: 2 additions & 1 deletion code/tutorial_app/pages/editor_test.en_US.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,5 @@ info_test_timeout: "Your code seems to be taking too long to run."

# custom testing messages
# if you add manual tests, you can add your own messages here
info_no_my_string: "Waiting for my string to be defined."
info_no_my_string: "`my_string` does not exist."
info_my_string_not_five: "`my_string` exists, but isn't set to the correct value."
1 change: 0 additions & 1 deletion code/tutorial_app/requirements.txt

This file was deleted.

10 changes: 6 additions & 4 deletions postBuild.bash
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ sudo chmod ugo+x ngc-cli/ngc
cat <<EOM | sudo tee /etc/profile.d/ngc-cli.sh > /dev/null
export PATH=\$PATH:/opt/ngc-cli
EOM
cd -

# custom python environment configuration
cat <<EOM | sudo tee /etc/profile.d/python.sh > /dev/null
Expand All @@ -39,10 +40,11 @@ fi
EOM

# setup the tutorial app
cd code/tutorial_app
python -m venv .venv
.venv/bin/pip install -r requirements.txt
ln -s $(pwd)/.venv/bin/streamlit ~/.local/bin/streamlit
cd /opt
sudo python3 -m venv live-labs
sudo ./live-labs/bin/pip install wheel
sudo ./live-labs/bin/pip install git+https://github.com/NVIDIA/nim-anywhere.git#subdirectory=libs/live-labs
sudo ln -s /opt/live-labs/bin/streamlit /home/workbench/.local/bin/streamlit

# clean up
sudo apt-get autoremove -y
Expand Down