Spaces:
Sleeping
Sleeping
simonduerr
commited on
Commit
•
809b460
1
Parent(s):
9a2fd32
Update inference_app.py
Browse files- inference_app.py +5 -3
inference_app.py
CHANGED
@@ -8,7 +8,7 @@ from gradio_molecule3d import Molecule3D
|
|
8 |
|
9 |
|
10 |
|
11 |
-
def predict (input_seq_1, input_protein_1, input_seq_2, input_protein_2):
|
12 |
start_time = time.time()
|
13 |
# Do inference here
|
14 |
# return an output pdb file with the protein and two chains A and B.
|
@@ -24,9 +24,11 @@ with gr.Blocks() as app:
|
|
24 |
with gr.Row():
|
25 |
with gr.Column():
|
26 |
input_seq_1 = gr.Textbox(lines=3, label="Input Protein 1 sequence (FASTA)")
|
|
|
27 |
input_protein_1 = gr.File(label="Input Protein 2 monomer (PDB)")
|
28 |
with gr.Column():
|
29 |
-
input_seq_2 = gr.Textbox(lines=3, label="Input Protein
|
|
|
30 |
input_protein_2 = gr.File(label="Input Protein 2 structure (PDB)")
|
31 |
|
32 |
|
@@ -84,6 +86,6 @@ with gr.Blocks() as app:
|
|
84 |
out = Molecule3D(reps=reps)
|
85 |
run_time = gr.Textbox(label="Runtime")
|
86 |
|
87 |
-
btn.click(predict, inputs=[input_seq_1, input_protein_1, input_seq_2, input_protein_2], outputs=[out, run_time])
|
88 |
|
89 |
app.launch()
|
|
|
8 |
|
9 |
|
10 |
|
11 |
+
def predict (input_seq_1, input_msa_1, input_protein_1, input_seq_2,input_msa_2, input_protein_2):
|
12 |
start_time = time.time()
|
13 |
# Do inference here
|
14 |
# return an output pdb file with the protein and two chains A and B.
|
|
|
24 |
with gr.Row():
|
25 |
with gr.Column():
|
26 |
input_seq_1 = gr.Textbox(lines=3, label="Input Protein 1 sequence (FASTA)")
|
27 |
+
input_msa_1 = gr.File(label="Input MSA Protein 1 (FASTA)")
|
28 |
input_protein_1 = gr.File(label="Input Protein 2 monomer (PDB)")
|
29 |
with gr.Column():
|
30 |
+
input_seq_2 = gr.Textbox(lines=3, label="Input Protein 2 sequence (FASTA)")
|
31 |
+
input_msa_2 = gr.File(label="Input MSA Protein 2 (FASTA)")
|
32 |
input_protein_2 = gr.File(label="Input Protein 2 structure (PDB)")
|
33 |
|
34 |
|
|
|
86 |
out = Molecule3D(reps=reps)
|
87 |
run_time = gr.Textbox(label="Runtime")
|
88 |
|
89 |
+
btn.click(predict, inputs=[input_seq_1, input_msa_1, input_protein_1, input_seq_2, input_msa_2, input_protein_2], outputs=[out, run_time])
|
90 |
|
91 |
app.launch()
|