Update app.py
Browse files
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
|
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 '
|
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",
|