Spaces:
Runtime error
Runtime error
changed Image layout
Browse files
app.py
CHANGED
@@ -282,19 +282,20 @@ def main(args):
|
|
282 |
with gr.Blocks(css="""
|
283 |
.center { display: flex; justify-content: center; }
|
284 |
""") as demo:
|
285 |
-
gr.
|
286 |
-
|
287 |
-
|
288 |
-
|
289 |
-
|
290 |
-
|
291 |
-
|
292 |
-
gr.
|
293 |
-
|
294 |
-
|
295 |
-
|
296 |
-
|
297 |
-
|
|
|
298 |
|
299 |
reaction_string = gr.Textbox(placeholder="Input one reaction", label='Input Reaction')
|
300 |
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 |
+
with gr.Column():
|
286 |
+
gr.HTML(
|
287 |
+
"""
|
288 |
+
<center><h1><b>ReactXT</b></h1></center>
|
289 |
+
<p style="font-size:20px; font-weight:bold;">This is the demo page of our ACL 2024 paper
|
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>
|
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')
|