Spaces:
Paused
Paused
Download scripts/verify_model_config.py from vyluong/POC_ASR_v6: direct link, hf CLI and curl.
- Browser
- Download file 660 Bytes
-
https://huggingface.co/spaces/vyluong/POC_ASR_v6/resolve/main/scripts/verify_model_config.py
- Command line
-
hf download hf://spaces/vyluong/POC_ASR_v6/scripts/verify_model_config.py
-
curl -L -o verify_model_config.py https://huggingface.co/spaces/vyluong/POC_ASR_v6/resolve/main/scripts/verify_model_config.py
660 Bytes
| import os | |
| from app.core.config import get_settings | |
| from app.services.transcription import TranscriptionService | |
| def verify_stt_model(): | |
| settings = get_settings() | |
| print(f"Current Whisper Model: {settings.whisper_model}") | |
| print(f"Device: {settings.resolved_device}") | |
| print(f"Compute Type: {settings.resolved_compute_type}") | |
| expected_model = "kiendt/PhoWhisper-large-ct2" | |
| if settings.whisper_model == expected_model: | |
| print("✅ SUCCESS: Model configuration updated correctly.") | |
| else: | |
| print(f"❌ FAILURE: Expected {expected_model}, got {settings.whisper_model}") | |
| if __name__ == "__main__": | |
| verify_stt_model() | |