Spaces:
Sleeping
Sleeping
| import whisper | |
| def transcribe_audio(file_path: str) -> str: | |
| """ | |
| Transcribe an audio/video file using local Whisper model. | |
| """ | |
| # Load small model for faster processing (you can use "base", "medium", or "large") | |
| model = whisper.load_model("small") | |
| result = model.transcribe(file_path) | |
| return result["text"] | |