dayannex commited on
Commit
ef0edc1
·
1 Parent(s): 8f4b0f4

app modified

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -419,9 +419,10 @@ def procesar(texto,archivo):
419
  for item in df.columns.values:
420
  sentences=df[item]
421
  model.identificacion_idioma(sentences[0])
 
422
  ides, predicted = modelo.aplicar_modelo(sentences,"en")
423
  out=modelo.salida_texto2( ides,predicted)
424
-
425
  df_new[item] = modelo.unir_array(out)
426
  return "", df_new, df_new.to_csv(sep='\t', encoding='utf-8',index=False)
427
  #return "", df_new, df_new.to_excel( index=False)
 
419
  for item in df.columns.values:
420
  sentences=df[item]
421
  model.identificacion_idioma(sentences[0])
422
+ print('sentences',sentences)
423
  ides, predicted = modelo.aplicar_modelo(sentences,"en")
424
  out=modelo.salida_texto2( ides,predicted)
425
+ print('out:',out)
426
  df_new[item] = modelo.unir_array(out)
427
  return "", df_new, df_new.to_csv(sep='\t', encoding='utf-8',index=False)
428
  #return "", df_new, df_new.to_excel( index=False)