lik07 commited on
Commit
bfa2e5d
verified
1 Parent(s): 3aa89ba

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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', 'es_core_news_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('es_core_news_trf')
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):