mirror of
https://github.com/tcsenpai/youlama.git
synced 2025-06-07 03:35:41 +00:00
fixed whisper shenanigans
This commit is contained in:
parent
4ad72ffe8d
commit
02f580d195
2
app.py
2
app.py
@ -96,7 +96,7 @@ OLLAMA_MODELS = ollama.get_available_models() if OLLAMA_AVAILABLE else []
|
|||||||
DEFAULT_OLLAMA_MODEL = ollama.get_default_model() if OLLAMA_AVAILABLE else None
|
DEFAULT_OLLAMA_MODEL = ollama.get_default_model() if OLLAMA_AVAILABLE else None
|
||||||
|
|
||||||
|
|
||||||
def load_model(model_name: str) -> whisperx.WhisperModel:
|
def load_model(model_name: str):
|
||||||
"""Load the WhisperX model with the specified configuration."""
|
"""Load the WhisperX model with the specified configuration."""
|
||||||
try:
|
try:
|
||||||
logger.info(f"Loading WhisperX model: {model_name}")
|
logger.info(f"Loading WhisperX model: {model_name}")
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
gradio>=4.0.0
|
gradio>=4.0.0
|
||||||
# Choose one of these whisper implementations:
|
# Choose one of these whisper implementations:
|
||||||
whisperx>=3.0.0
|
whisperx>=3.0.0
|
||||||
torch>=2.0.0,<2.1.0
|
torch>=2.0.0
|
||||||
torchvision>=0.15.0,<0.16.0
|
torchvision>=0.15.0
|
||||||
torchaudio>=2.0.0,<2.1.0
|
torchaudio>=2.0.0
|
||||||
yt-dlp>=2023.0.0
|
yt-dlp>=2023.0.0
|
||||||
python-dotenv>=1.0.0
|
python-dotenv>=1.0.0
|
||||||
requests>=2.31.0
|
requests>=2.31.0
|
||||||
|
Loading…
x
Reference in New Issue
Block a user