Hugging Face
Models
Datasets
Spaces
Community
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
redfernstech
/
s
like
0
Runtime error
App
Files
Files
Community
Fetching metadata from the HF Docker repository...
3076331
s
/
whisper_utils.py
redfernstech
Upload 6 files
e8a4c92
verified
9 months ago
raw
Copy download link
history
blame
Safe
171 Bytes
import
whisper
model = whisper.load_model(
"base"
)
def
transcribe_audio
(
file_path:
str
) ->
str
:
result = model.transcribe(file_path)
return
result[
"text"
]