ricardo-lsantos's picture
Update app.py
c058fe0 verified
raw
history blame contribute delete
669 Bytes
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()