qingxu99 commited on
Commit
8295288
1 Parent(s): 04504b1
Files changed (1) hide show
  1. main.py +1 -1
main.py CHANGED
@@ -146,7 +146,7 @@ with gr.Blocks(theme=set_theme, analytics_enabled=False, css=advanced_css) as de
146
  # 随变按钮的回调函数注册
147
  def route(k, *args, **kwargs):
148
  if k in [r"打开插件列表", r"请先从插件列表中选择"]: return
149
- yield from crazy_fns[k]["Function"](*args, **kwargs)
150
  click_handle = switchy_bt.click(route,[switchy_bt, *input_combo, gr.State(PORT)], output_combo)
151
  click_handle.then(on_report_generated, [file_upload, chatbot], [file_upload, chatbot])
152
  # def expand_file_area(file_upload, area_file_up):
 
146
  # 随变按钮的回调函数注册
147
  def route(k, *args, **kwargs):
148
  if k in [r"打开插件列表", r"请先从插件列表中选择"]: return
149
+ yield from ArgsGeneralWrapper(crazy_fns[k])["Function"](*args, **kwargs)
150
  click_handle = switchy_bt.click(route,[switchy_bt, *input_combo, gr.State(PORT)], output_combo)
151
  click_handle.then(on_report_generated, [file_upload, chatbot], [file_upload, chatbot])
152
  # def expand_file_area(file_upload, area_file_up):