abelenguerv's picture
Add uv dependency management
5cecaff
|
Raw
History Blame Contribute Delete
859 Bytes
---
title: Template Final Assignment
emoji: 🕵🏻‍♂️
colorFrom: indigo
colorTo: indigo
sdk: gradio
sdk_version: 5.25.2
app_file: app.py
pinned: false
hf_oauth: true
# optional, default duration is 8 hours/480 minutes. Max duration is 30 days/43200 minutes.
hf_oauth_expiration_minutes: 480
---
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
## Local development
This project uses `uv` for the local isolated environment and keeps
`requirements.txt` for Hugging Face Spaces deployment.
Create or update the local environment:
```bash
uv sync
```
Run the Gradio app locally:
```bash
uv run python app.py
```
After changing dependencies in `pyproject.toml`, refresh the Space
requirements file:
```bash
uv lock
uv export --format requirements-txt --no-hashes --output-file requirements.txt
```