simonduerr commited on
Commit
085b67f
1 Parent(s): 1175896

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -6
app.py CHANGED
@@ -112,7 +112,7 @@ with demo:
112
  gr.Markdown("# PDB viewer using Mol*")
113
  gr.Markdown("""If using please cite
114
  > David Sehnal, Sebastian Bittrich, Mandar Deshpande, Radka Svobodová, Karel Berka, Václav Bazgier, Sameer Velankar, Stephen K Burley, Jaroslav Koča, Alexander S Rose: Mol* Viewer: modern web app for 3D visualization and analysis of large biomolecular structures, Nucleic Acids Research, 2021; 10.1093/nar/gkab31.""")
115
- public_link = gr.Textbox()
116
  with gr.Row():
117
  with gr.Box():
118
  inp = gr.Textbox(
@@ -123,8 +123,4 @@ with demo:
123
  btn = gr.Button("View structure")
124
  mol = gr.HTML()
125
  btn.click(fn=update, inputs=[inp, file, public_link], outputs=mol)
126
- _, _, pl = demo.launch()
127
-
128
-
129
- public_link.update(value=pl)
130
- print(public_link)
 
112
  gr.Markdown("# PDB viewer using Mol*")
113
  gr.Markdown("""If using please cite
114
  > David Sehnal, Sebastian Bittrich, Mandar Deshpande, Radka Svobodová, Karel Berka, Václav Bazgier, Sameer Velankar, Stephen K Burley, Jaroslav Koča, Alexander S Rose: Mol* Viewer: modern web app for 3D visualization and analysis of large biomolecular structures, Nucleic Acids Research, 2021; 10.1093/nar/gkab31.""")
115
+ public_link = "https://simonduerr-molstar-gradio.hf.space"
116
  with gr.Row():
117
  with gr.Box():
118
  inp = gr.Textbox(
 
123
  btn = gr.Button("View structure")
124
  mol = gr.HTML()
125
  btn.click(fn=update, inputs=[inp, file, public_link], outputs=mol)
126
+ _, _, pl = demo.launch() # use public link with share=True locally