Skip to content

Commit

Permalink
QuantaGradio bash script updates.
Browse files Browse the repository at this point in the history
  • Loading branch information
Clay-Ferguson committed Jan 28, 2025
1 parent 7dd1860 commit 8fab39e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 25 deletions.
12 changes: 0 additions & 12 deletions QuantaGradio/conda_init.sh

This file was deleted.

8 changes: 1 addition & 7 deletions QuantaGradio/install_modules.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,6 @@
# conda activate quanta_gradio
# ./install_modules.sh

source ./conda_init.sh

conda_path="/home/clay/miniconda3"
export PATH="$conda_path/bin:$PATH"
source $conda_path/bin/activate quanta_gradio

if [[ "$CONDA_DEFAULT_ENV" == "quanta_gradio" ]]; then
read -p "Press ENTER. To install modules."
# WARNING ************************************************************************************************************************
Expand All @@ -35,7 +29,7 @@ if [[ "$CONDA_DEFAULT_ENV" == "quanta_gradio" ]]; then
pydantic-core \
configargparse
else
echo "Failed to set Conda Environment: Expected quanta_gradio but found $CONDA_DEFAULT_ENV"
echo "Wrong Conda Environment: Expected quanta_gradio but found $CONDA_DEFAULT_ENV"
sleep 10s
exit 1
fi
Expand Down
12 changes: 6 additions & 6 deletions QuantaGradio/run.sh
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
#!/bin/bash

source ./conda_init.sh

conda_path="/home/clay/miniconda3"
export PATH="$conda_path/bin:$PATH"
source $conda_path/bin/activate quanta_gradio
# NOTE: Run this in VSCode Terminal AND don't forget to also open a Python file and notice that you need to check
# that VSCode is indeed activated to the correct conda environment, by visually looking at lower right corner of VSCode.
#
# conda activate quanta_gradio

if [[ "$CONDA_DEFAULT_ENV" == "quanta_gradio" ]]; then
rm ../../logs/Quanta_Gradio_*.log
python3 Quanta_Gradio_ChatTest.py
else
echo "Failed to set Conda Environment: Expected quanta_gradio but found $CONDA_DEFAULT_ENV"
echo "Wrong Conda Environment: Expected quanta_gradio but found $CONDA_DEFAULT_ENV"
sleep 10s
exit 1
fi

0 comments on commit 8fab39e

Please sign in to comment.