Mqleet commited on
Commit
0e183fb
·
1 Parent(s): 7335a97

upd docker file

Browse files
Files changed (1) hide show
  1. app.py +5 -2
app.py CHANGED
@@ -1598,7 +1598,7 @@ with gr.Blocks(title="Paper2ProjectPage Generator", theme=gr.themes.Soft(), css=
1598
  section_display_json,
1599
  template_choice,
1600
  template_preview_links,
1601
- section_feedback_input
1602
  ]
1603
  )
1604
 
@@ -1646,10 +1646,13 @@ with gr.Blocks(title="Paper2ProjectPage Generator", theme=gr.themes.Soft(), css=
1646
  html_file_output
1647
  ]
1648
  )
 
 
 
1649
 
1650
  # Open Preview Button - Use JavaScript to open in new tab
1651
  open_preview_btn.click(
1652
- fn=None,
1653
  inputs=[preview_url_state],
1654
  outputs=None,
1655
  js="(url) => window.open(url, '_blank')"
 
1598
  section_display_json,
1599
  template_choice,
1600
  template_preview_links,
1601
+ # section_feedback_input
1602
  ]
1603
  )
1604
 
 
1646
  html_file_output
1647
  ]
1648
  )
1649
+ def dummy_open_preview(url):
1650
+ """Dummy function to pass URL to JavaScript"""
1651
+ return None
1652
 
1653
  # Open Preview Button - Use JavaScript to open in new tab
1654
  open_preview_btn.click(
1655
+ fn=dummy_open_preview,
1656
  inputs=[preview_url_state],
1657
  outputs=None,
1658
  js="(url) => window.open(url, '_blank')"