Spaces:
Runtime error
Runtime error
add image path
Browse files
app.py
CHANGED
@@ -290,7 +290,7 @@ def main(args):
|
|
290 |
<i>ReactXT: Understanding Molecular “Reaction-ship” via Reaction-Contextualized Molecule-Text Pretraining.</i></p>
|
291 |
""")
|
292 |
with gr.Row(elem_classes="center"):
|
293 |
-
gr.Image(value="figures/frameworks.jpg", elem_classes="center", label="Framework of ReactXT", scale=0.8)
|
294 |
gr.HTML(
|
295 |
"""
|
296 |
<p style="font-size:16px;"> Please input one chemical reaction below, and we will generate the predicted experimental procedure.</p>
|
@@ -308,7 +308,7 @@ def main(args):
|
|
308 |
btn.click(fn=online_chat, inputs=[reaction_string, temperature], outputs=[out])
|
309 |
clear_btn.click(fn=lambda:("", ""), inputs=[], outputs=[reaction_string, out])
|
310 |
|
311 |
-
demo.launch()
|
312 |
|
313 |
|
314 |
|
|
|
290 |
<i>ReactXT: Understanding Molecular “Reaction-ship” via Reaction-Contextualized Molecule-Text Pretraining.</i></p>
|
291 |
""")
|
292 |
with gr.Row(elem_classes="center"):
|
293 |
+
gr.Image(value="/home/user/app/figures/frameworks.jpg", elem_classes="center", label="Framework of ReactXT", scale=0.8)
|
294 |
gr.HTML(
|
295 |
"""
|
296 |
<p style="font-size:16px;"> Please input one chemical reaction below, and we will generate the predicted experimental procedure.</p>
|
|
|
308 |
btn.click(fn=online_chat, inputs=[reaction_string, temperature], outputs=[out])
|
309 |
clear_btn.click(fn=lambda:("", ""), inputs=[], outputs=[reaction_string, out])
|
310 |
|
311 |
+
demo.launch(allowed_paths=['/home/user/app/figures/'])
|
312 |
|
313 |
|
314 |
|