lbugnon commited on
Commit
eac4f0d
·
1 Parent(s): 67e1336

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
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"