Deploy Qwen Captioning UI To HF Space
This deploys the music-captioning app (qwen_caption_app.py) as its own Space.
Prerequisites
- Hugging Face account
HF_TOKENwith write access
Steps
- Create a new Hugging Face Space (SDK:
Gradio). - Push this repo content to that Space.
- In Space
README.mdfront matter, set:sdk: gradioapp_file: qwen_caption_app.py
- Pick GPU hardware (A10G or better recommended for local backend).
- Optional secrets/env:
HF_TOKEN(if accessing private datasets or endpoint backend)
Runtime notes
localbackend loadsQwen/Qwen2-Audio-7B-Instructin the Space runtime.hf_endpointbackend can call a dedicated endpoint URL instead.- Export defaults to
/data/qwen_annotationson Spaces when persistent storage is enabled.