Spaces:
Sleeping
Sleeping
app modified
Browse files
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)
|