Skip to content

Instantly share code, notes, and snippets.

@uysalserkan
Created August 20, 2024 07:59
Show Gist options
  • Save uysalserkan/44bee9bc2eb7597fc8c17b368ad37c32 to your computer and use it in GitHub Desktop.
Save uysalserkan/44bee9bc2eb7597fc8c17b368ad37c32 to your computer and use it in GitHub Desktop.
#!/bin/sh
# Check fisrt parameter and run python script with it
if [ "$1" = "ui" ]; then
streamlit run ui.py
elif [ "$1" = "api" ]; then
python3 api.py
else
echo "Invalid run type, please use 'ui' or 'api'."
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment