umarigan commited on
Commit
da41238
1 Parent(s): 04ea426

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -52,11 +52,11 @@ model_list = [
52
  st.sidebar.header("Select NER Model")
53
  model_checkpoint = st.sidebar.radio("", model_list)
54
 
55
- st.sidebar.write("For details of models: 'https://huggingface.co/akdeniz27/")
56
  st.sidebar.write("Only PDF, DOCX, and TXT files are supported.")
57
 
58
  # Determine aggregation strategy
59
- aggregation = "simple" if model_checkpoint in ["akdeniz27/xlm-roberta-base-turkish-ner", "xlm-roberta-large-finetuned-conll03-english", "asahi417/tner-xlm-roberta-base-ontonotes5"] else "first"
60
 
61
  st.subheader("Select Text Input Method")
62
  input_method = st.radio("", ('Write or Paste New Text', 'Upload File'))
 
52
  st.sidebar.header("Select NER Model")
53
  model_checkpoint = st.sidebar.radio("", model_list)
54
 
55
+ #st.sidebar.write("For details of models: 'https://huggingface.co/akdeniz27/")
56
  st.sidebar.write("Only PDF, DOCX, and TXT files are supported.")
57
 
58
  # Determine aggregation strategy
59
+ aggregation = "simple" if model_checkpoint in ["asahi417/tner-xlm-roberta-base-ontonotes5"] else "first"
60
 
61
  st.subheader("Select Text Input Method")
62
  input_method = st.radio("", ('Write or Paste New Text', 'Upload File'))