SUNGJIN LEE commited on
Commit
1267686
1 Parent(s): b538215

페이지 구조 개선

Browse files
Files changed (3) hide show
  1. Pages/About.py +2 -0
  2. Pages/Algorithm.py +23 -23
  3. Pages/Home.py +2 -0
Pages/About.py CHANGED
@@ -3,6 +3,8 @@ from streamlit.logger import get_logger
3
 
4
  LOGGER = get_logger(__name__)
5
 
 
 
6
  st.write("# About")
7
 
8
  st.markdown(
 
3
 
4
  LOGGER = get_logger(__name__)
5
 
6
+ st.set_page_config(layout="centered")
7
+
8
  st.write("# About")
9
 
10
  st.markdown(
Pages/Algorithm.py CHANGED
@@ -1,30 +1,30 @@
1
- import streamlit as st
2
- import pandas as pd
3
- from datasets import load_dataset
4
- import data
5
- import seaborn as sns
6
- import tabs.machine_learning as machine_learning
7
- import tabs.reinforcement_learning as reinforcement_learning
8
- import tabs.threshold_optimization as threshold_optimization
9
 
10
- st.set_page_config(layout="wide")
11
 
12
- st.write("# Algorithm")
13
 
14
- @st.cache_data(show_spinner=False)
15
- def load_labeled_data():
16
- dataset = load_dataset('skt-asap/labeled-dataset', data_files="Labeled.csv", token=data.token, streaming=True)
17
- return dataset
18
 
19
- with st.spinner("데이터 로딩 중..."):
20
- dataset = load_labeled_data()
21
 
22
 
23
- tab1, tab2, tab3 = st.tabs(["Threshold Optimization", "Machine Learning", "Reinforcement Learning"])
24
 
25
- with tab1:
26
- threshold_optimization.show()
27
- with tab2:
28
- machine_learning.show()
29
- with tab3:
30
- reinforcement_learning.show()
 
1
+ # import streamlit as st
2
+ # import pandas as pd
3
+ # from datasets import load_dataset
4
+ # import data
5
+ # import seaborn as sns
6
+ # import tabs.machine_learning as machine_learning
7
+ # import tabs.reinforcement_learning as reinforcement_learning
8
+ # import tabs.threshold_optimization as threshold_optimization
9
 
10
+ # st.set_page_config(layout="wide")
11
 
12
+ # st.write("# Algorithm")
13
 
14
+ # @st.cache_data(show_spinner=False)
15
+ # def load_labeled_data():
16
+ # dataset = load_dataset('skt-asap/labeled-dataset', data_files="Labeled.csv", token=data.token, streaming=True)
17
+ # return dataset
18
 
19
+ # with st.spinner("데이터 로딩 중..."):
20
+ # dataset = load_labeled_data()
21
 
22
 
23
+ # tab1, tab2, tab3 = st.tabs(["Threshold Optimization", "Machine Learning", "Reinforcement Learning"])
24
 
25
+ # with tab1:
26
+ # threshold_optimization.show()
27
+ # with tab2:
28
+ # machine_learning.show()
29
+ # with tab3:
30
+ # reinforcement_learning.show()
Pages/Home.py CHANGED
@@ -4,5 +4,7 @@ import yaml
4
 
5
  LOGGER = get_logger(__name__)
6
 
 
 
7
  st.write("# Home")
8
 
 
4
 
5
  LOGGER = get_logger(__name__)
6
 
7
+ st.set_page_config(layout="centered")
8
+
9
  st.write("# Home")
10