Spaces:
Runtime error
Runtime error
freemt
commited on
Commit
·
d6268f4
1
Parent(s):
0fa9da2
Remove out_plot in fn gradiobeegradiobee
Browse files- radiobee/__main__.py +1 -1
- radiobee/gradiobee.py +5 -1
radiobee/__main__.py
CHANGED
@@ -391,13 +391,13 @@ if __name__ == "__main__":
|
|
391 |
# modi outputs 2, need to modify gradio error_msg
|
392 |
outputs = [ # tot. 8
|
393 |
out_df,
|
394 |
-
gr.outputs.Image(label="plot"),
|
395 |
out_file_dl,
|
396 |
out_file_dl_excel,
|
397 |
out_sents_dl,
|
398 |
out_sents_dl_excel,
|
399 |
out_df_aligned,
|
400 |
gr.outputs.HTML(),
|
|
|
401 |
]
|
402 |
# outputs = ["dataframe", "plot", "plot"] # wont work
|
403 |
# outputs = ["dataframe"]
|
|
|
391 |
# modi outputs 2, need to modify gradio error_msg
|
392 |
outputs = [ # tot. 8
|
393 |
out_df,
|
|
|
394 |
out_file_dl,
|
395 |
out_file_dl_excel,
|
396 |
out_sents_dl,
|
397 |
out_sents_dl_excel,
|
398 |
out_df_aligned,
|
399 |
gr.outputs.HTML(),
|
400 |
+
# gr.outputs.Image(label="plot"),
|
401 |
]
|
402 |
# outputs = ["dataframe", "plot", "plot"] # wont work
|
403 |
# outputs = ["dataframe"]
|
radiobee/gradiobee.py
CHANGED
@@ -501,4 +501,8 @@ def gradiobee( # noqa
|
|
501 |
ic("aligned sents outputs")
|
502 |
|
503 |
# return df_trimmed, output_plot, file_dl, file_dl_xlsx, None, None, df_aligned, df_html
|
504 |
-
|
|
|
|
|
|
|
|
|
|
501 |
ic("aligned sents outputs")
|
502 |
|
503 |
# return df_trimmed, output_plot, file_dl, file_dl_xlsx, None, None, df_aligned, df_html
|
504 |
+
|
505 |
+
# return df_trimmed, output_plot, file_dl, file_dl_xlsx, file_dl_sents, file_dl_xlsx_sents, df_aligned_sents, df_html
|
506 |
+
|
507 |
+
# remove output_plot
|
508 |
+
return df_trimmed, file_dl, file_dl_xlsx, file_dl_sents, file_dl_xlsx_sents, df_aligned_sents, df_html
|