Spaces:
Runtime error
Runtime error
zhnbvsst10
commited on
Commit
•
1112449
1
Parent(s):
e758957
new
Browse files
app.py
CHANGED
@@ -36,7 +36,8 @@ def to_excel(df):
|
|
36 |
|
37 |
st.set_page_config(page_title='Seyco QC page')
|
38 |
st.title('Working line operations monitoring system')
|
39 |
-
|
|
|
40 |
start_date = st.date_input('start_date')
|
41 |
end_date = st.date_input('end_date')
|
42 |
|
@@ -253,7 +254,18 @@ if val == 'PERT':
|
|
253 |
st.line_chart(df['weight_b'])
|
254 |
st.line_chart(df[df['weight'].isnull()==False]['weight'])
|
255 |
st.line_chart(df[df['mark_control'].isnull()==False]['mark_control'])
|
256 |
-
|
257 |
-
|
258 |
-
|
259 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
36 |
|
37 |
st.set_page_config(page_title='Seyco QC page')
|
38 |
st.title('Working line operations monitoring system')
|
39 |
+
|
40 |
+
val = st.selectbox('select product', [None,'PVC', 'PPR-C','Fitting Vodopr', 'Fitting Canal', 'Fitting Other', 'PERT', 'Window_door', 'bead','laminated_profile','laminated_other', 'windowsill'])
|
41 |
start_date = st.date_input('start_date')
|
42 |
end_date = st.date_input('end_date')
|
43 |
|
|
|
254 |
st.line_chart(df['weight_b'])
|
255 |
st.line_chart(df[df['weight'].isnull()==False]['weight'])
|
256 |
st.line_chart(df[df['mark_control'].isnull()==False]['mark_control'])
|
257 |
+
if val == 'Window_door':
|
258 |
+
df = get_data('window_door', start_date, end_date)
|
259 |
+
st.dataframe(df)
|
260 |
+
if val == 'bead':
|
261 |
+
df = get_data('bead', start_date, end_date)
|
262 |
+
st.dataframe(df)
|
263 |
+
if val == 'laminated_profile':
|
264 |
+
df = get_data('laminated_profile', start_date, end_date)
|
265 |
+
st.dataframe(df)
|
266 |
+
if val == 'laminated_other':
|
267 |
+
df = get_data('laminated_other', start_date, end_date)
|
268 |
+
st.dataframe(df)
|
269 |
+
if val == 'windowsill':
|
270 |
+
df = get_data('windowsill', start_date, end_date)
|
271 |
+
st.dataframe(df)
|