santiviquez commited on
Commit
a065117
1 Parent(s): c56be05

remove dissable button

Browse files
Files changed (1) hide show
  1. app.py +3 -6
app.py CHANGED
@@ -6,9 +6,6 @@ import nannyml as nml
6
 
7
  if 'count' not in st.session_state:
8
  st.session_state.count = 0
9
-
10
- if 'dissable' not in st.session_state:
11
- st.session_state.dissable = False
12
 
13
  def increment_counter():
14
  st.session_state.count += 1
@@ -38,8 +35,8 @@ if review and single_review_button:
38
 
39
  # # # # # # # #
40
 
41
- reference_df = pd.read_csv('../reference.csv')
42
- analysis_df = pd.read_csv('../analysis.csv')
43
 
44
  reference_df['label'] = reference_df['label'].astype(str)
45
  reference_df['pred_label'] = reference_df['pred_label'].astype(str)
@@ -74,7 +71,7 @@ calculator = nml.PerformanceCalculator(
74
  )
75
  calculator.fit(reference_df)
76
 
77
- multiple_reviews_button = st.button('Estimate Model Performance on 400 Reviews', on_click=increment_counter, disabled=st.session_state.dissable)
78
 
79
 
80
  if multiple_reviews_button:
 
6
 
7
  if 'count' not in st.session_state:
8
  st.session_state.count = 0
 
 
 
9
 
10
  def increment_counter():
11
  st.session_state.count += 1
 
35
 
36
  # # # # # # # #
37
 
38
+ reference_df = pd.read_csv('reference.csv')
39
+ analysis_df = pd.read_csv('analysis.csv')
40
 
41
  reference_df['label'] = reference_df['label'].astype(str)
42
  reference_df['pred_label'] = reference_df['pred_label'].astype(str)
 
71
  )
72
  calculator.fit(reference_df)
73
 
74
+ multiple_reviews_button = st.button('Estimate Model Performance on 400 Reviews', on_click=increment_counter)
75
 
76
 
77
  if multiple_reviews_button: