Spaces:
Build error
Build error
Download Makefile from iqra07/Sentiment-Analysis: direct link, hf CLI and curl.
- Browser
- Download file 665 Bytes
-
https://huggingface.co/spaces/iqra07/Sentiment-Analysis/resolve/main/Makefile
- Command line
-
hf download hf://spaces/iqra07/Sentiment-Analysis/Makefile
-
curl -L -o Makefile https://huggingface.co/spaces/iqra07/Sentiment-Analysis/resolve/main/Makefile
665 Bytes
| # Install dependencies | |
| install: | |
| pip install --upgrade pip && \ | |
| pip install -r requirements.txt | |
| # Run basic tests to ensure the app works | |
| test: | |
| python -m pytest -vv tests # Update this if you create tests later | |
| # Debug any test failures | |
| debug: | |
| python -m pytest -vv --pdb | |
| # Run a specific test | |
| one-test: | |
| python -m pytest -vv tests/test_app.py::test_specific_function | |
| # Format the code with Black | |
| format: | |
| black *.py | |
| # Lint the code with pylint | |
| lint: | |
| pylint --disable=R,C *.py | |
| # Deploy the app to Hugging Face Spaces | |
| deploy: | |
| huggingface-cli repo upload ./ -r spaces/username/my-ml-app --branch main | |
| # Run all tasks | |
| all: install lint format test deploy | |