OleinikovasV commited on
Commit
3240ef1
1 Parent(s): e7b35c6

Update inference_app.py

Browse files
Files changed (1) hide show
  1. inference_app.py +3 -3
inference_app.py CHANGED
@@ -24,10 +24,11 @@ def set_all_to_zero(input_pdb_file_1, input_pdb_file_2, output_file):
24
  # def predict (input_seq_1, input_msa_1, input_protein_1, input_seq_2,input_msa_2, input_protein_2):
25
  def predict(input_protein_1, input_protein_2):
26
  start_time = time.time()
 
27
  # Do inference here
28
-
29
  # return an output pdb file with the protein and two chains A and B.
30
  output_file = "test_out.pdb"
 
31
  set_all_to_zero(input_protein_1, input_protein_2, output_file)
32
  # also return a JSON with any metrics you want to report
33
  metrics = {"F_nat": 100}
@@ -45,7 +46,7 @@ with gr.Blocks() as app:
45
  with gr.Column():
46
  # input_seq_1 = gr.Textbox(lines=3, label="Input Protein 1 sequence (FASTA)")
47
  # input_msa_1 = gr.File(label="Input MSA Protein 1 (A3M)")
48
- input_protein_1 = gr.File(label="Input Protein 2 monomer (PDB)")
49
  with gr.Column():
50
  # input_seq_2 = gr.Textbox(lines=3, label="Input Protein 2 sequence (FASTA)")
51
  # input_msa_2 = gr.File(label="Input MSA Protein 2 (A3M)")
@@ -67,7 +68,6 @@ with gr.Blocks() as app:
67
  [
68
  "3v1c_A.pdb",
69
  "3v1c_B.pdb",
70
-
71
  ],
72
  ],
73
  [input_protein_1, input_protein_2],
 
24
  # def predict (input_seq_1, input_msa_1, input_protein_1, input_seq_2,input_msa_2, input_protein_2):
25
  def predict(input_protein_1, input_protein_2):
26
  start_time = time.time()
27
+
28
  # Do inference here
 
29
  # return an output pdb file with the protein and two chains A and B.
30
  output_file = "test_out.pdb"
31
+ print(input_protein_1, input_protein_2)
32
  set_all_to_zero(input_protein_1, input_protein_2, output_file)
33
  # also return a JSON with any metrics you want to report
34
  metrics = {"F_nat": 100}
 
46
  with gr.Column():
47
  # input_seq_1 = gr.Textbox(lines=3, label="Input Protein 1 sequence (FASTA)")
48
  # input_msa_1 = gr.File(label="Input MSA Protein 1 (A3M)")
49
+ input_protein_1 = gr.File(label="Input Protein 1 monomer (PDB)")
50
  with gr.Column():
51
  # input_seq_2 = gr.Textbox(lines=3, label="Input Protein 2 sequence (FASTA)")
52
  # input_msa_2 = gr.File(label="Input MSA Protein 2 (A3M)")
 
68
  [
69
  "3v1c_A.pdb",
70
  "3v1c_B.pdb",
 
71
  ],
72
  ],
73
  [input_protein_1, input_protein_2],