Hugging Face
Models
Datasets
Spaces
Buckets
new
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
devjhawar
/
KLypse
like
0
Sleeping
App
Files
Files
Community
Fetching metadata from the HF Docker repository...
main
KLypse
/
app
/
services
/
transcript_audio.py
DEVJHAWAR11
Deploy Klypse backend
54bef2f
7 months ago
raw
Copy download link
history
blame
contribute
delete
Safe
180 Bytes
import
whisper
def
transcribe_audio
(
audio_path, model_size=
"base"
):
model = whisper.load_model(model_size)
result = model.transcribe(audio_path)
return
result[
"text"
]