Hugging Face
Models
Datasets
Spaces
Community
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
MaxGab
/
Text-to-Audio
like
0
Running
App
Files
Files
Community
1
Fetching metadata from the HF Docker repository...
6e97f3b
Text-to-Audio
/
app.py
MaxGab
Update app.py
4f50869
verified
3 months ago
raw
Copy download link
history
blame
Safe
212 Bytes
import
gradio
as
gr
from
transformers
import
pipeline
pipe = pipeline(model=
"suno/bark-small"
)
output = pipe(
"Hey it's HuggingFace on the phone!"
)
audio = output[
"audio"
]
sampling_rate = output[
"sampling_rate"
]