Wedyan2023 commited on
Commit
b9ca69f
·
verified ·
1 Parent(s): 4801d85

Update app110.py

Browse files
Files changed (1) hide show
  1. app110.py +2 -23
app110.py CHANGED
@@ -536,7 +536,7 @@ if "task_choice" in st.session_state:
536
  key='download-json-persistent'
537
  )
538
  # Display the labeled examples
539
- st.markdown("##### 📋 Labeled Examples Preview")
540
  st.dataframe(df, use_container_width=True)
541
 
542
  if st.button("Continue"):
@@ -682,28 +682,7 @@ if "task_choice" in st.session_state:
682
  labels_valid = not errors # True if no validation errors
683
 
684
  elif classification_type == "Named Entity Recognition (NER)":
685
- # # NER entity options
686
- # ner_entities = [
687
- # "PERSON - Names of people, fictional characters, historical figures",
688
- # "ORG - Companies, institutions, agencies, teams",
689
- # "LOC - Physical locations (mountains, oceans, etc.)",
690
- # "GPE - Countries, cities, states, political regions",
691
- # "DATE - Calendar dates, years, centuries",
692
- # "TIME - Times, durations",
693
- # "MONEY - Monetary values with currency"
694
- # ]
695
- # selected_entities = st.multiselect(
696
- # "Select entities to recognize",
697
- # ner_entities,
698
- # default=["PERSON - Names of people, fictional characters, historical figures",
699
- # "ORG - Companies, institutions, agencies, teams",
700
- # "LOC - Physical locations (mountains, oceans, etc.)",
701
- # "GPE - Countries, cities, states, political regions",
702
- # "DATE - Calendar dates, years, centuries",
703
- # "TIME - Times, durations",
704
- # "MONEY - Monetary values with currency"],
705
- # key="ner_entity_selection"
706
- # )
707
  #new 22/4/2025
708
  #if classification_type == "Named Entity Recognition (NER)":
709
  use_few_shot = True
 
536
  key='download-json-persistent'
537
  )
538
  # Display the labeled examples
539
+ st.markdown("##### 📋 Generated Examples Preview")
540
  st.dataframe(df, use_container_width=True)
541
 
542
  if st.button("Continue"):
 
682
  labels_valid = not errors # True if no validation errors
683
 
684
  elif classification_type == "Named Entity Recognition (NER)":
685
+
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
686
  #new 22/4/2025
687
  #if classification_type == "Named Entity Recognition (NER)":
688
  use_few_shot = True