Update app.py #148
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Streamlit App | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ubuntu-latest # Use Ubuntu runner for the CI environment | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v2 | |
- name: Set up Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: 3.9 # Python version you want to use | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install -r requirements.txt # Install your app's dependencies | |
- name: Install NLTK data | |
run: | | |
python -m nltk.downloader punkt # Download required NLTK data | |
- name: Run Streamlit app | |
run: | | |
streamlit run app.py --server.port 8501 --server.address 0.0.0.0 # Run the Streamlit app | |
env: | |
HF_API_TOKEN: ${{ secrets.HF_API_TOKEN }} # Add any necessary environment variables |