akdeniz27 commited on
Commit
745304b
·
1 Parent(s): 376002d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -35,7 +35,7 @@ st.sidebar.write("")
35
  xlm_agg_strategy_info = "'aggregation_strategy' can be selected as 'simple' or 'none' for 'xlm-roberta' because of the RoBERTa model's tokenization approach."
36
 
37
  st.sidebar.header("Select Aggregation Strategy Type")
38
- if model_checkpoint == any(["akdeniz27/xlm-roberta-base-turkish-ner", "akdeniz27/mDeBERTa-v3-base-turkish-ner"]):
39
  aggregation = st.sidebar.radio("", ('simple', 'none'))
40
  st.sidebar.write(xlm_agg_strategy_info)
41
  elif model_checkpoint == "xlm-roberta-large-finetuned-conll03-english":
 
35
  xlm_agg_strategy_info = "'aggregation_strategy' can be selected as 'simple' or 'none' for 'xlm-roberta' because of the RoBERTa model's tokenization approach."
36
 
37
  st.sidebar.header("Select Aggregation Strategy Type")
38
+ if model_checkpoint == "akdeniz27/xlm-roberta-base-turkish-ner" or model_checkpoint == "akdeniz27/mDeBERTa-v3-base-turkish-ner":
39
  aggregation = st.sidebar.radio("", ('simple', 'none'))
40
  st.sidebar.write(xlm_agg_strategy_info)
41
  elif model_checkpoint == "xlm-roberta-large-finetuned-conll03-english":