Spaces:
Runtime error
Runtime error
Download app.py from Pranav4datasc/Pydatasets: direct link, hf CLI and curl.
- Browser
- Download file 473 Bytes
-
https://huggingface.co/spaces/Pranav4datasc/Pydatasets/resolve/main/app.py
- Command line
-
hf download hf://spaces/Pranav4datasc/Pydatasets/app.py
-
curl -L -o app.py https://huggingface.co/spaces/Pranav4datasc/Pydatasets/resolve/main/app.py
473 Bytes
| import streamlit as st | |
| from pydataset import data | |
| st.title('Datasets for Py ML Apps🎈') | |
| selected_data = st.sidebar.selectbox('Select a dataset',data().dataset_id) | |
| title_data = data()[ data()['dataset_id'] == selected_data]['title'] | |
| st.header(':1234: Datasets :1234:') | |
| st.subheader('List of Datasets') | |
| with st.expander('Show list of datasets'): | |
| st.write(data()) | |
| st.subheader(f'Selected Data(`{selected_data}`)') | |
| st.info(title_data) | |
| st.write(data(selected_data)) | |