Spaces:
Sleeping
Sleeping
update app
Browse files
app.py
CHANGED
@@ -411,8 +411,9 @@ def procesar(texto,archivo):
|
|
411 |
out=modelo.salida_texto2( ides,predicted)
|
412 |
|
413 |
df_new[item] = modelo.unir_array(out)
|
414 |
-
|
415 |
-
|
|
|
416 |
|
417 |
demo = gr.Interface(fn=procesar,inputs=["text",gr.File()] , outputs=["text",gr.Dataframe(interactive=False),"text"])
|
418 |
#
|
|
|
411 |
out=modelo.salida_texto2( ides,predicted)
|
412 |
|
413 |
df_new[item] = modelo.unir_array(out)
|
414 |
+
|
415 |
+
#return "", df, df.to_csv(sep='\t', encoding='utf-8',index=False)
|
416 |
+
return "", df_new, df_new.to_csv(sep='\t', encoding='utf-8',index=False)
|
417 |
|
418 |
demo = gr.Interface(fn=procesar,inputs=["text",gr.File()] , outputs=["text",gr.Dataframe(interactive=False),"text"])
|
419 |
#
|