Multichem commited on
Commit
564302e
·
verified ·
1 Parent(s): a667a07

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -11
app.py CHANGED
@@ -47,14 +47,11 @@ def convert_df_to_csv(df):
47
 
48
  flex_base = init_baselines()
49
 
50
- tab1 = st.tabs(['Flex View'])
51
-
52
- with tab1:
53
- with st.container():
54
- st.dataframe(flex_base.style.background_gradient(axis=0).background_gradient(cmap='RdYlGn').format(precision=2), height = 1000, use_container_width = True)
55
- st.download_button(
56
- label="Export Tables",
57
- data=convert_df_to_csv(flex_base),
58
- file_name='tennis_model_export.csv',
59
- mime='text/csv',
60
- )
 
47
 
48
  flex_base = init_baselines()
49
 
50
+ with st.container():
51
+ st.dataframe(flex_base.style.background_gradient(axis=0).background_gradient(cmap='RdYlGn').format(precision=2), height = 1000, use_container_width = True)
52
+ st.download_button(
53
+ label="Export Tables",
54
+ data=convert_df_to_csv(flex_base),
55
+ file_name='tennis_model_export.csv',
56
+ mime='text/csv',
57
+ )