Spaces:
Sleeping
Sleeping
xml export shares the exact same name as xml import (no more _entites)
Browse files
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 + "
|
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 |
|