Spaces:
Sleeping
title: T2AV Eval UI
colorFrom: blue
colorTo: green
sdk: docker
app_port: 7860
Video Evaluation UI
This app is configured to deploy as a Hugging Face Docker Space. The Docker build compiles the Vite frontend, serves it from FastAPI, and stores each annotation as a JSON file in a Hugging Face Dataset repo.
Hugging Face Space Deployment
- Create a new Space on Hugging Face and choose Docker as the SDK.
- Add a Space secret named
HF_TOKENwith a Hugging Face token that has write access to datasets in thedghadiyanamespace (the token must belong to, or be added as a collaborator on, that account — see note below). - Optional: set
HF_ANNOTATIONS_DATASET_REPOif you want to use a dataset repo other thandghadiya/t2av_eval_annotations. Optional: setHF_VIDEO_DATASET_REPOif the evaluation videos move to a different dataset repo (defaultdghadiya/T2AV_TemporalConstraint; this one is public, so no token is required just to read it). - Add this repository as the Space repository or push it to the Space remote:
git remote add hf https://huggingface.co/spaces/YOUR_USERNAME/YOUR_SPACE_NAME
git push hf main
- Hugging Face will build the root
Dockerfileand expose the app on port7860.
The backend creates the annotation dataset repo on first save if it does not
already exist. By default it creates the dataset as private. Set
HF_ANNOTATIONS_DATASET_PRIVATE=false to create a public dataset instead.
Note: HF_TOKEN must belong to (or have write access on) whatever account
owns HF_ANNOTATIONS_DATASET_REPO — a token cannot create or write repos in a
namespace its owner doesn't control. To check which account a token belongs
to: python -c "from huggingface_hub import HfApi; print(HfApi().whoami(token='hf_...'))".
Backend
cd backend
pip install -r requirements.txt
uvicorn main:app --reload
Backend runs at: http://localhost:8000
Health check: http://localhost:8000/health
Frontend
cd frontend
npm install
npm run dev
Frontend runs at: http://localhost:5173