ajitrajasekharan commited on
Commit
25d10c8
·
1 Parent(s): 0e5769d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -158,10 +158,10 @@ def main():
158
  option = init_selectbox()
159
  input_text = st.text_input("Enter text below", "",on_change=on_text_change,key='my_text')
160
  custom_model_name = st.text_input("Model not listed on left? Type the model name (fill-mask BERT models only)", "",key="my_model2",on_change=on_model_change2)
161
- #if (len(custom_model_name) > 0):
162
- # model_name = custom_model_name
163
- #st.info("Custom model selected: " + model_name)
164
- # bert_tokenizer, bert_model = load_bert_model(model_name)
165
  #if len(input_text) > 0:
166
  # run_test(input_text,top_k,model_name)
167
  #else:
 
158
  option = init_selectbox()
159
  input_text = st.text_input("Enter text below", "",on_change=on_text_change,key='my_text')
160
  custom_model_name = st.text_input("Model not listed on left? Type the model name (fill-mask BERT models only)", "",key="my_model2",on_change=on_model_change2)
161
+ if (len(custom_model_name) > 0):
162
+ model_name = custom_model_name
163
+ st.info("Custom model selected: " + model_name)
164
+ bert_tokenizer, bert_model = load_bert_model(model_name)
165
  #if len(input_text) > 0:
166
  # run_test(input_text,top_k,model_name)
167
  #else: