fahrendrakhoirul commited on
Commit
d701c20
·
1 Parent(s): 992c7ee

update best label for model

Browse files
Files changed (2) hide show
  1. app.py +2 -2
  2. model_services/pipeline.py +2 -2
app.py CHANGED
@@ -45,7 +45,7 @@ with row1_1:
45
  with row1_2:
46
  selected_model = st.selectbox(
47
  "Choose the model",
48
- ("IndoBERT", "IndoBERT-CNN (Best)", "IndoBERT-LSTM"),
49
  )
50
 
51
  # text input
@@ -185,7 +185,7 @@ def show_result(outputs):
185
 
186
  # create note if wanna download, hove on top right in table show
187
  st.markdown("**Note:** To download the table, hover over the top right corner of the table and click the download button.")
188
-
189
 
190
 
191
 
 
45
  with row1_2:
46
  selected_model = st.selectbox(
47
  "Choose the model",
48
+ ("IndoBERT", "IndoBERT-CNN", "IndoBERT-LSTM (Best)"),
49
  )
50
 
51
  # text input
 
185
 
186
  # create note if wanna download, hove on top right in table show
187
  st.markdown("**Note:** To download the table, hover over the top right corner of the table and click the download button.")
188
+
189
 
190
 
191
 
model_services/pipeline.py CHANGED
@@ -65,9 +65,9 @@ def predict(text: str, model_name: str):
65
  model = None
66
  if model_name == "IndoBERT":
67
  model = indobert_model
68
- if model_name == "IndoBERT-CNN (Best)":
69
  model = indobertcnn_model
70
- if model_name == "IndoBERT-LSTM":
71
  model = indobertlstm_model
72
  input_ids = token_result['input_ids']
73
  attention_mask = token_result['attention_mask']
 
65
  model = None
66
  if model_name == "IndoBERT":
67
  model = indobert_model
68
+ if model_name == "IndoBERT-CNN":
69
  model = indobertcnn_model
70
+ if model_name == "IndoBERT-LSTM (Best)":
71
  model = indobertlstm_model
72
  input_ids = token_result['input_ids']
73
  attention_mask = token_result['attention_mask']