Spaces:
Sleeping
Sleeping
Download src/streamlit_app.py from Heizsenberg/leaf_classification: direct link, hf CLI and curl.
- Browser
- Download file 302 Bytes
-
https://huggingface.co/spaces/Heizsenberg/leaf_classification/resolve/main/src/streamlit_app.py
- Command line
-
hf download hf://spaces/Heizsenberg/leaf_classification/src/streamlit_app.py
-
curl -L -o streamlit_app.py https://huggingface.co/spaces/Heizsenberg/leaf_classification/resolve/main/src/streamlit_app.py
302 Bytes
| import streamlit as st | |
| import eda | |
| import prediction | |
| st.set_page_config( | |
| page_title="Tomato Leaf Classifier", | |
| layout = 'wide', | |
| initial_sidebar_state='expanded' | |
| ) | |
| page = st.sidebar.selectbox('Pilih Page: ', ('EDA', 'Prediction')) | |
| if page == 'EDA': | |
| eda.run() | |
| else: | |
| prediction.run() |