Spaces:
Running
Running
title: House Room Classifier | |
emoji: π | |
colorFrom: red | |
colorTo: gray | |
sdk: gradio | |
sdk_version: 4.27.0 | |
app_file: app.py | |
pinned: false | |
license: apache-2.0 | |
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference | |
python -m venv .env | |
You should now have a directory called .env in your otherwise empty folder: | |
ls -a | |
. .. .env | |
You can jump in and out of your virtual environment with the activate and deactivate scripts: | |
# Activate the virtual environment | |
source .env/bin/activate | |
# Deactivate the virtual environment | |
deactivate | |
You can make sure that the environment is activated by running the which python command: if it points to the virtual environment, then you have successfully activated it! | |
#Push to repo | |
git add app.py | |
git commit -m "Add application file" | |
git push | |
#run | |
source .env/bin/activate | |
python3 app.py |