Add config Text box
Browse files
app.py
CHANGED
|
@@ -77,12 +77,13 @@ with gr.Blocks() as demo:
|
|
| 77 |
# Chai1 Simulation Interface
|
| 78 |
This interface allows you to run Chai1 simulations on a given Fasta sequence file.
|
| 79 |
""")
|
| 80 |
-
|
|
|
|
| 81 |
btn = gr.Button("Run")
|
| 82 |
out = Molecule3D(label="Molecule3D", reps=reps)
|
| 83 |
-
btn.click(fn=compute_Chai1, inputs=[
|
| 84 |
|
| 85 |
-
|
| 86 |
"""
|
| 87 |
You can input a Fasta file containing the sequence of the molecule you want to simulate.
|
| 88 |
The output will be a 3D representation of the molecule based on the Chai1 model.
|
|
|
|
| 77 |
# Chai1 Simulation Interface
|
| 78 |
This interface allows you to run Chai1 simulations on a given Fasta sequence file.
|
| 79 |
""")
|
| 80 |
+
inp1 = gr.Textbox(placeholder="Fasta Sequence file", label="Input Fasta file")
|
| 81 |
+
inp2 = gr.Textbox(placeholder="Config file", label="JSON Config file")
|
| 82 |
btn = gr.Button("Run")
|
| 83 |
out = Molecule3D(label="Molecule3D", reps=reps)
|
| 84 |
+
btn.click(fn=compute_Chai1, inputs=[inp1 , inp2], outputs=[out])
|
| 85 |
|
| 86 |
+
gr.Markdown(
|
| 87 |
"""
|
| 88 |
You can input a Fasta file containing the sequence of the molecule you want to simulate.
|
| 89 |
The output will be a 3D representation of the molecule based on the Chai1 model.
|