Views
No views yet
st.audio_input).streamlit-webrtc (experimental; WavLM-large on CPU lags — a GPU Space is smoother).yt-dlp (experimental; HF Spaces often rate-limit YouTube).wavlm-large_ft_seed42.pt is ~1.26 GB, so it lives on the Hugging Face Model Hub,
not in this Space repo. The app runs with an untrained placeholder until weights are provided.1from huggingface_hub import HfApi, create_repo
2create_repo("YOUR_USERNAME/iemocap-wavlm-large", repo_type="model", exist_ok=True)
3HfApi().upload_file(
4 path_or_fileobj="/content/drive/MyDrive/ser_cache/wavlm-large_ft_seed42.pt",
5 path_in_repo="wavlm-large_ft_seed42.pt",
6 repo_id="YOUR_USERNAME/iemocap-wavlm-large",
7 repo_type="model",
8)MODEL_REPO = YOUR_USERNAME/iemocap-wavlm-large (and MODEL_FILE if you renamed the file).
Restart the Space; it downloads the weights once on boot and caches them.wavlm-large_ft_seed42.pt into the Space with Git LFS and skip MODEL_REPO —
but the Hub route keeps the Space repo light.)ser_model.FTModel is reproduced verbatim from the v6 notebook so the
saved state_dict loads cleanly. The backbone is built from config (no redundant 1.26 GB download).Dockerfile # installs ffmpeg + deps, runs src/streamlit_app.py on :8501
requirements.txt # python deps (torch, transformers, …)
README.md # this file (sdk: docker, app_port: 8501)
src/
streamlit_app.py # UI
ser_model.py # WavLM model + preprocessing + inference1pip install -r requirements.txt
2export MODEL_REPO=YOUR_USERNAME/iemocap-wavlm-large # or place the .pt next to ser_model.py
3streamlit run src/streamlit_app.py
4# or mirror the Space exactly:
5docker build -t iemocap-ser . && docker run -p 8501:8501 -e MODEL_REPO=... iemocap-ser