Update app.py
Browse files
app.py
CHANGED
@@ -7,13 +7,13 @@ from io import BytesIO
|
|
7 |
import subprocess
|
8 |
|
9 |
# Comando a ejecutar
|
10 |
-
command = ['python', '-m', 'spacy', 'download', '
|
11 |
|
12 |
# Ejecutar el comando
|
13 |
subprocess.run(command, check=True, text=True, capture_output=False)
|
14 |
|
15 |
# Cargar el modelo de SpaCy en espa帽ol
|
16 |
-
nlp = spacy.load('
|
17 |
|
18 |
# Funci贸n para extraer nombres de personas
|
19 |
def extract_names_from_docx(docx_file):
|
|
|
7 |
import subprocess
|
8 |
|
9 |
# Comando a ejecutar
|
10 |
+
command = ['python', '-m', 'spacy', 'download', 'zh_core_web_trf']
|
11 |
|
12 |
# Ejecutar el comando
|
13 |
subprocess.run(command, check=True, text=True, capture_output=False)
|
14 |
|
15 |
# Cargar el modelo de SpaCy en espa帽ol
|
16 |
+
nlp = spacy.load('zh_core_web_trf')
|
17 |
|
18 |
# Funci贸n para extraer nombres de personas
|
19 |
def extract_names_from_docx(docx_file):
|