OleinikovasV commited on
Commit
21a7e32
·
verified ·
1 Parent(s): 0a549d0

Update inference_app.py

Browse files
Files changed (1) hide show
  1. inference_app.py +8 -4
inference_app.py CHANGED
@@ -21,8 +21,8 @@ def set_all_to_zero(input_pdb_file_1, input_pdb_file_2, output_file):
21
  file.write(output_file)
22
 
23
 
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
@@ -65,11 +65,15 @@ with gr.Blocks() as app:
65
  gr.Examples(
66
  [
67
  [
 
 
68
  "3v1c_A.pdb",
 
 
69
  "3v1c_B.pdb",
70
  ],
71
  ],
72
- [input_protein_1, input_protein_2],
73
  )
74
  reps = [
75
  {
@@ -105,6 +109,6 @@ with gr.Blocks() as app:
105
  metrics = gr.JSON(label="Metrics")
106
  run_time = gr.Textbox(label="Runtime")
107
 
108
- btn.click(predict, inputs=[input_protein_1, input_protein_2], outputs=[out, metrics, run_time])
109
 
110
  app.launch()
 
21
  file.write(output_file)
22
 
23
 
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
 
65
  gr.Examples(
66
  [
67
  [
68
+ "",
69
+ "",
70
  "3v1c_A.pdb",
71
+ "",
72
+ "",
73
  "3v1c_B.pdb",
74
  ],
75
  ],
76
+ [input_seq_1, input_msa_1, input_protein_1, input_seq_2, input_msa_2, input_protein_2],
77
  )
78
  reps = [
79
  {
 
109
  metrics = gr.JSON(label="Metrics")
110
  run_time = gr.Textbox(label="Runtime")
111
 
112
+ btn.click(predict, inputs=[input_seq_1, input_msa_1, input_protein_1, input_seq_2, input_msa_2, input_protein_2], outputs=[out, metrics, run_time])
113
 
114
  app.launch()