Spaces:
Runtime error
Runtime error
File size: 330 Bytes
99a3e70 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
import whisper
import numpy as np
from scipy.io.wavfile import read
import torch
import whisper
def transcibe(audio):
print("Started trans....")
model = whisper.load_model("base")
print("Model Loded...")
result = model.transcribe(audio)
print("Transcribed")
print(result["text"])
return result["text"]
|