oucgc1996 commited on
Commit
0063dd4
·
verified ·
1 Parent(s): f4c361f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -52,7 +52,7 @@ def ACE(file):
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)
58
  all.extend(X)
@@ -88,7 +88,7 @@ def ACE(file):
88
  summary['Probability'] = probability_all
89
  summary_df = pd.DataFrame(summary)
90
  summary_df.to_csv('output.csv', index=False)
91
- return 'outputs.csv'
92
 
93
  iface = gr.Interface(fn=ACE,
94
  inputs="text",
 
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)
58
  all.extend(X)
 
88
  summary['Probability'] = probability_all
89
  summary_df = pd.DataFrame(summary)
90
  summary_df.to_csv('output.csv', index=False)
91
+ return 'output.csv'
92
 
93
  iface = gr.Interface(fn=ACE,
94
  inputs="text",