youngtsai commited on
Commit
c997d4e
1 Parent(s): 15e1a1f

with gr.Blocks() as demo:

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -826,7 +826,6 @@ HEAD = """
826
  <script>
827
  const mind_map_tab_button = document.querySelector("#mind_map_tab-button");
828
 
829
- // 在30秒后设置事件监听
830
  if (mind_map_tab_button) {
831
  mind_map_tab_button.addEventListener('click', function() {
832
  const mind_map_markdown = document.querySelector("#mind_map_markdown > label > textarea");
@@ -841,7 +840,7 @@ HEAD = """
841
  """
842
 
843
 
844
- with gr.Blocks(head=HEAD) as demo:
845
  with gr.Row():
846
  with gr.Column():
847
  file_upload = gr.File(label="Upload your CSV or Word file", visible=False)
 
826
  <script>
827
  const mind_map_tab_button = document.querySelector("#mind_map_tab-button");
828
 
 
829
  if (mind_map_tab_button) {
830
  mind_map_tab_button.addEventListener('click', function() {
831
  const mind_map_markdown = document.querySelector("#mind_map_markdown > label > textarea");
 
840
  """
841
 
842
 
843
+ with gr.Blocks() as demo:
844
  with gr.Row():
845
  with gr.Column():
846
  file_upload = gr.File(label="Upload your CSV or Word file", visible=False)