Team Ai
Apppublic

CodingMaster24/SolarAnalysis

sourceHugging Faceapache-2.0updated 2y agoView on Hugging Face
0likes
app.py56 linesDownload Raw Back to root
1import streamlit as st2 3# Set Streamlit page configuration4st.set_page_config(page_title="Solar Forecast", page_icon="๐ŸŒž", layout="wide")5 6# Sidebar Navigation7st.sidebar.title("๐Ÿ” Navigation")8page = st.sidebar.radio(9    "Go to",10    [11        "Home",12        "LSTM Model",13        "XGBoost Model",14        "Random Forest",15        "Linear Regression",16        "GitHub",17        "About"18    ],19)20 21# Page Routing22if page == "Home":23    st.title("๐Ÿ  Home")24    st.write("Welcome to the Solar Energy Forecasting Dashboard! ๐Ÿš€")25    st.write("Use the sidebar to navigate between different models and features.")26 27elif page == "LSTM Model":28    st.title("๐Ÿ“Š LSTM Model")29    st.write("This page will show predictions using the LSTM model.")30    epochs = st.slider("Select Number of Epochs", min_value=10, max_value=100, step=10, value=50)31    progress = st.progress(0)32    for i in range(epochs):33        progress.progress((i + 1) / epochs)34    st.success("LSTM Model Training Complete!")35 36elif page == "XGBoost Model":37    st.title("๐Ÿ“ˆ XGBoost Model")38    st.write("Predictions using XGBoost will be displayed here.")39 40elif page == "Random Forest":41    st.title("๐ŸŒฒ Random Forest Model")42    st.write("Predictions using the Random Forest model will be displayed here.")43 44elif page == "Linear Regression":45    st.title("๐Ÿ“‰ Linear Regression Model")46    st.write("Predictions using Linear Regression will be displayed here.")47 48elif page == "GitHub":49    st.title("๐Ÿ™ GitHub Repository")50    st.write("Check out the source code on GitHub.")51    st.markdown("[Visit GitHub](https://github.com/Sivatech24)")52 53elif page == "About":54    st.title("โ„น๏ธ About")55    st.write("This application forecasts solar energy using different machine learning models.")56    st.write("Developed by Team.")