Hugging Face
Models
Datasets
Spaces
Posts
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
liloge
/
Group7
like
0
Sleeping
App
Files
Files
Community
Fetching metadata from the HF Docker repository...
main
Group7
/
components
/
audio_player.py
liloge
Upload 26 files
574481e
verified
about 1 month ago
raw
Copy download link
history
blame
contribute
delete
191 Bytes
import
streamlit
as
st
def
play_audio
(
audio_file
):
"""
显示音频播放器组件
Args:
audio_file: 上传的音频文件
"""
st.audio(audio_file)