a-menu commited on
Commit
7f87f17
1 Parent(s): 14db0f1

xml export shares the exact same name as xml import (no more _entites)

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -150,6 +150,7 @@ def load_ner():
150
  :returns: loaded fr_arches model
151
  :rtype: spacy.lang.fr.French
152
  """
 
153
  ner = spacy.load("fr_arches")
154
  # To try to reduce memory usage
155
  config = {"attrs": {"tensor": None}}
@@ -726,11 +727,10 @@ def main():
726
  st.write("")
727
 
728
  # Download the modified XML
729
- # We add a "_entites" at the end of the file name to differentiate it from the original
730
  st.download_button(
731
  label="Télécharger le fichier xml modifié",
732
  data=modified_xml,
733
- file_name=updated_name + "_entites.xml",
734
  mime="xml",
735
  )
736
 
 
150
  :returns: loaded fr_arches model
151
  :rtype: spacy.lang.fr.French
152
  """
153
+
154
  ner = spacy.load("fr_arches")
155
  # To try to reduce memory usage
156
  config = {"attrs": {"tensor": None}}
 
727
  st.write("")
728
 
729
  # Download the modified XML
 
730
  st.download_button(
731
  label="Télécharger le fichier xml modifié",
732
  data=modified_xml,
733
+ file_name=updated_name + ".xml",
734
  mime="xml",
735
  )
736