3v324v23 commited on
Commit
629d022
1 Parent(s): c5355a9
Files changed (1) hide show
  1. main.py +3 -3
main.py CHANGED
@@ -123,9 +123,9 @@ with gr.Blocks(theme=set_theme, analytics_enabled=False, css=advanced_css) as de
123
  yield from crazy_fns[k]["Function"](*args, **kwargs)
124
  click_handle = switchy_bt.click(route,[switchy_bt, *input_combo, gr.State(PORT)], output_combo)
125
  click_handle.then(on_report_generated, [file_upload, chatbot], [file_upload, chatbot])
126
- def expand_file_area(file_upload, area_file_up):
127
- if len(file_upload)>0: return {area_file_up: gr.update(open=True)}
128
- click_handle.then(expand_file_area, [file_upload, area_file_up], [area_file_up])
129
  cancel_handles.append(click_handle)
130
  # 终止按钮的回调函数注册
131
  stopBtn.click(fn=None, inputs=None, outputs=None, cancels=cancel_handles)
 
123
  yield from crazy_fns[k]["Function"](*args, **kwargs)
124
  click_handle = switchy_bt.click(route,[switchy_bt, *input_combo, gr.State(PORT)], output_combo)
125
  click_handle.then(on_report_generated, [file_upload, chatbot], [file_upload, chatbot])
126
+ # def expand_file_area(file_upload, area_file_up):
127
+ # if len(file_upload)>0: return {area_file_up: gr.update(open=True)}
128
+ # click_handle.then(expand_file_area, [file_upload, area_file_up], [area_file_up])
129
  cancel_handles.append(click_handle)
130
  # 终止按钮的回调函数注册
131
  stopBtn.click(fn=None, inputs=None, outputs=None, cancels=cancel_handles)