omarperacha commited on
Commit
f809c85
·
1 Parent(s): 4c9631f
Files changed (1) hide show
  1. app.py +10 -5
app.py CHANGED
@@ -9,9 +9,14 @@ def pred(residue_seq):
9
  return preds
10
 
11
 
12
- iface = gr.Interface(fn=pred, title="Protein Secondary Structure Prediction with PS4-Mega",
13
- inputs="text", outputs="text", examples=[
14
- ["HXHVWPVQDAKARFSEFLDACITEGPQIVSRRGAEEAVLVPIGEWRRLQAAA"],
15
- ["AHKLFIGGLPNYLNDDQVKELLTSFGPLKAFNLVKDSATGLSKGYAFCEYVDINVTDQAIAGLNGMQLGDKKLLVQRASVGAKNA"]
16
- ])
 
 
 
 
 
17
  iface.launch()
 
9
  return preds
10
 
11
 
12
+ iface = gr.Interface(
13
+ fn=pred,
14
+ title="Protein Secondary Structure Prediction with PS4-Mega",
15
+ inputs=[gr.Textbox(label="Residue Sequence", value="")],
16
+ outputs=[gr.Textbox(label="Secondary Structure", value="")],
17
+ examples=[
18
+ ["HXHVWPVQDAKARFSEFLDACITEGPQIVSRRGAEEAVLVPIGEWRRLQAAA"],
19
+ ["AHKLFIGGLPNYLNDDQVKELLTSFGPLKAFNLVKDSATGLSKGYAFCEYVDINVTDQAIAGLNGMQLGDKKLLVQRASVGAKNA"]
20
+ ]
21
+ )
22
  iface.launch()