Commit ·
25f6ae6
1
Parent(s): a99f759
Fix torchaudio missing dep and TARO sys.path for bare imports
Browse filesFiles changed (2)
- app.py+7
- requirements.txt+2-1
238 unmodified lines239240241242243244238 unmodified linesdevice = "cuda" if torch.cuda.is_available() else "cpu"weight_dtype = torch.bfloat16# Imports are inside the GPU context so the Space only pays for GPU time herefrom TARO.cavp_util import Extract_CAVP_Featuresfrom TARO.onset_util import VideoOnsetNet, extract_onset238 unmodified lines239240241242243244245246247248249250251238 unmodified linesdevice = "cuda" if torch.cuda.is_available() else "cpu"weight_dtype = torch.bfloat16# TARO modules use bare imports (e.g. `from cavp_util import ...`) that# assume the TARO directory is on sys.path. Add it before importing.import sys, os as _os_taro_dir = _os.path.join(_os.path.dirname(_os.path.abspath(__file__)), "TARO")if _taro_dir not in sys.path:sys.path.insert(0, _taro_dir)# Imports are inside the GPU context so the Space only pays for GPU time herefrom TARO.cavp_util import Extract_CAVP_Featuresfrom TARO.onset_util import VideoOnsetNet, extract_onset
14 unmodified lines1516171814 unmodified linesspaces==0.48.1gradio==5.25.0pydantic==2.8.2av14 unmodified lines151617181914 unmodified linesspaces==0.48.1gradio==5.25.0pydantic==2.8.2avtorchaudio
app.py+7
requirements.txt+2-1