-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapp.py
34 lines (23 loc) · 838 Bytes
/
app.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
import streamlit as st
import awesome_streamlit as ast
import home
import predict
import about
from weather import icon
st.set_page_config(layout="wide",page_title="Güneş Enerjisi Üretim Tahmini",page_icon="images/logov5.png")
ast.core.services.other.set_logging_format()
PAGES = {
"Anasayfa": home,
"Tahminleme": predict,
"Hakkında":about,
}
def main():
with st.sidebar:
st.image("images/logov5.png",width=120)
st.markdown("<h1 style='margin-top:-20px'>Solar Forecast</h1>",unsafe_allow_html=True)
selection = st.sidebar.radio("", list(PAGES.keys()))
page = PAGES[selection]
with st.spinner("Yükleniyor"):
ast.shared.components.write_page(page)
if __name__ == "__main__":
main()