Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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 ["
|
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'))
|