Spaces:
Sleeping
Sleeping
File size: 669 Bytes
91c9027 c058fe0 bdc94bf 91c9027 bdc94bf 91c9027 bdc94bf 91c9027 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
import streamlit as st
from datasets import load_dataset, Audio
@st.cache_resource()
def load_dataset_btn():
st.title('Load Dataset')
ds_ckpt = st.text_input('Enter the dataset checkpoint', 'PolyAI/minds14')
ds_lang = st.text_input('Enter the dataset language', 'en-US')
ds_split = st.text_input('Enter the dataset split', 'train')
# Load the dataset
dataset = load_dataset(ds_ckpt, ds_lang, split=ds_split)
# Display the dataset
st.dataframe(dataset.to_pandas())
def app():
st.title('Home')
st.write('Welcome to the home page')
if st.button('Load Dataset'):
load_dataset_btn()
if __name__ == '__main__':
app() |