fix bug
This commit is contained in:
parent
8575c82ed7
commit
c64dbb03fd
6
main.py
6
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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user