Spaces:
Runtime error
Runtime error
updated image display method
Browse files
app.py
CHANGED
|
@@ -282,20 +282,15 @@ def main(args):
|
|
| 282 |
with gr.Blocks(css="""
|
| 283 |
.center { display: flex; justify-content: center; }
|
| 284 |
""") as demo:
|
| 285 |
-
|
| 286 |
-
|
| 287 |
-
|
| 288 |
-
|
| 289 |
-
|
| 290 |
-
|
| 291 |
-
|
| 292 |
-
|
| 293 |
-
|
| 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>
|
| 297 |
-
<p style="font-size:16px;"> The reaction should be in form of <b>Reactants>Reagents>Product</b>.</p>
|
| 298 |
-
""")
|
| 299 |
|
| 300 |
reaction_string = gr.Textbox(placeholder="Input one reaction", label='Input Reaction')
|
| 301 |
gr.Examples(example_inputs, [reaction_string,], fn=online_chat, label='Example Reactions')
|
|
|
|
| 282 |
with gr.Blocks(css="""
|
| 283 |
.center { display: flex; justify-content: center; }
|
| 284 |
""") as demo:
|
| 285 |
+
gr.HTML(
|
| 286 |
+
"""
|
| 287 |
+
<center><h1><b>ReactXT</b></h1></center>
|
| 288 |
+
<p style="font-size:20px; font-weight:bold;">This is the demo page of our ACL 2024 paper
|
| 289 |
+
<i>ReactXT: Understanding Molecular “Reaction-ship” via Reaction-Contextualized Molecule-Text Pretraining.</i></p>
|
| 290 |
+
<center><img src="/file=./figures/frameworks.jpg" alt="Framework" style="width:1000px;"></center>
|
| 291 |
+
<p style="font-size:16px;"> Please input one chemical reaction below, and we will generate the predicted experimental procedure.</p>
|
| 292 |
+
<p style="font-size:16px;"> The reaction should be in form of <b>Reactants>Reagents>Product</b>.</p>
|
| 293 |
+
""")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 294 |
|
| 295 |
reaction_string = gr.Textbox(placeholder="Input one reaction", label='Input Reaction')
|
| 296 |
gr.Examples(example_inputs, [reaction_string,], fn=online_chat, label='Example Reactions')
|