Spaces:
Sleeping
Sleeping
import whisper | |
def transcribe(audio_path): | |
model = whisper.load_model("base") | |
result = model.transcribe(audio_path) | |
return result['text'] |