i_vorobyev commited on
Commit
6f358d1
·
1 Parent(s): f365b3a

add examples

Browse files
Files changed (1) hide show
  1. app.py +3 -4
app.py CHANGED
@@ -108,14 +108,13 @@ def pred_seq(h_seq, l_seq):
108
  html = "<p>ERROR! Not valid sequence</p>"
109
  return (html)
110
 
111
- h_chain_example = "EVQLVQSGPEVKKPGTSVKVSCKASGFTFMS"
112
- l_chain_example = "DVVMTQTPFSLPVSLGDQAS"
113
  inputs = [gr.Textbox(lines=5, label="Heavy chain"),
114
  gr.Textbox(lines=5, label="Light chain")
115
  ]
116
  iface = gr.Interface(fn=pred_seq,
117
- inputs=inputs,
118
- examples = [h_chain_example, l_chain_example],
119
  outputs=gr.HTML(),
120
  title="Antibody structure prediction")
121
 
 
108
  html = "<p>ERROR! Not valid sequence</p>"
109
  return (html)
110
 
111
+ h_chain_example = "EVQLVQSGPEVKKPGTSVKVSCKASGFTFMSSAVQWVRQARGQRLEWIGWIVIGSGNTNYAQKFQERVTITRDMSTSTAYMELSSLRSEDTAVYYCAAPYCSSISCNDGFDIWGQGTMVTVS"
112
+ l_chain_example = "DVVMTQTPFSLPVSLGDQASISCRSSQSLVHSNGNTYLHWYLQKPGQSPKLLIYKVSNRFSGVPDRFSGSGSGTDFTLKISRVEAEDLGVYFCSQSTHVPYTFGGGTKLEIK"
113
  inputs = [gr.Textbox(lines=5, label="Heavy chain"),
114
  gr.Textbox(lines=5, label="Light chain")
115
  ]
116
  iface = gr.Interface(fn=pred_seq,
117
+ inputs=inputs,
 
118
  outputs=gr.HTML(),
119
  title="Antibody structure prediction")
120