From 629d022e8a76c5bb1fe3f455ba757d378711c824 Mon Sep 17 00:00:00 2001 From: Your Name Date: Sat, 1 Apr 2023 19:07:58 +0800 Subject: [PATCH] fix bug --- main.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/main.py b/main.py index 6ad9c28..533e590 100644 --- a/main.py +++ b/main.py @@ -123,9 +123,9 @@ with gr.Blocks(theme=set_theme, analytics_enabled=False, css=advanced_css) as de yield from crazy_fns[k]["Function"](*args, **kwargs) click_handle = switchy_bt.click(route,[switchy_bt, *input_combo, gr.State(PORT)], output_combo) click_handle.then(on_report_generated, [file_upload, chatbot], [file_upload, chatbot]) - def expand_file_area(file_upload, area_file_up): - if len(file_upload)>0: return {area_file_up: gr.update(open=True)} - click_handle.then(expand_file_area, [file_upload, area_file_up], [area_file_up]) + # def expand_file_area(file_upload, area_file_up): + # if len(file_upload)>0: return {area_file_up: gr.update(open=True)} + # click_handle.then(expand_file_area, [file_upload, area_file_up], [area_file_up]) cancel_handles.append(click_handle) # 终止按钮的回调函数注册 stopBtn.click(fn=None, inputs=None, outputs=None, cancels=cancel_handles)