subatomicseer's picture
Update main.yml
bf9d325
raw
history blame contribute delete
808 Bytes
name: Test Style Transfer
on:
push:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v3
with:
python-version: '3.7' # Version range or exact version of a Python version to use, using SemVer
- name: Install dependencies
run: pip install -r requirements.txt
- name: Run test.py
run:
python test.py --content_image images/content/cat.jpg --style_image images/art/asheville.jpg
- name: Install streamlit dependencies
run: |
pip install -r streamlit_app/requirements.txt
- name: Run streamlit app
run: |
nohup streamlit run streamlit_app/app.py &
sleep 5
curl http://localhost:8501