oucgc1996 commited on
Commit
772c696
·
verified ·
1 Parent(s): 404a78d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -52,7 +52,6 @@ def ACE(file):
52
  test_seq = file
53
  all = []
54
  seq_len = len(test_seq)
55
- print(seq_len)
56
  if seq_len > 30:
57
  for j in range(2, 11):
58
  X = Kmers_funct([test_seq], j)
@@ -101,8 +100,11 @@ def ACE(file):
101
 
102
  return 'output.csv', out_text, out_prob
103
 
 
 
104
  iface = gr.Interface(fn=ACE,
105
  title="🚀DeepACE: ACE identification model",
106
  inputs=gr.Textbox(show_label=False, placeholder="Enter peptide or protein", lines=4),
107
- outputs= ["file",gr.Textbox(show_label=False, placeholder="class", lines=1),gr.Textbox(show_label=False, placeholder="probability", lines=1)])
 
108
  iface.launch()
 
52
  test_seq = file
53
  all = []
54
  seq_len = len(test_seq)
 
55
  if seq_len > 30:
56
  for j in range(2, 11):
57
  X = Kmers_funct([test_seq], j)
 
100
 
101
  return 'output.csv', out_text, out_prob
102
 
103
+ with open("ACE.md", "r") as f:
104
+ description = f.read()
105
  iface = gr.Interface(fn=ACE,
106
  title="🚀DeepACE: ACE identification model",
107
  inputs=gr.Textbox(show_label=False, placeholder="Enter peptide or protein", lines=4),
108
+ outputs= ["file",gr.Textbox(show_label=False, placeholder="class", lines=1),gr.Textbox(show_label=False, placeholder="probability", lines=1)],
109
+ description=description)
110
  iface.launch()