Update app.py
Browse files
app.py
CHANGED
|
@@ -6,6 +6,8 @@ import os
|
|
| 6 |
|
| 7 |
def fold(id, sequence):
|
| 8 |
sequence = sequence.upper().strip()
|
|
|
|
|
|
|
| 9 |
shutil.rmtree("output", ignore_errors=True)
|
| 10 |
ct_file = f"output/{id}.ct"
|
| 11 |
structure_draw = f"output/{id}.png"
|
|
|
|
| 6 |
|
| 7 |
def fold(id, sequence):
|
| 8 |
sequence = sequence.upper().strip()
|
| 9 |
+
if len(sequence) > 512:
|
| 10 |
+
return "", "", "", "", "Max sequence length is 512"
|
| 11 |
shutil.rmtree("output", ignore_errors=True)
|
| 12 |
ct_file = f"output/{id}.ct"
|
| 13 |
structure_draw = f"output/{id}.png"
|