Simon Duerr commited on
Commit
5cc9777
1 Parent(s): 6c93db3

add warning for seqs >600

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -227,7 +227,7 @@ def predict(
227
  num_models,
228
  mode="web",
229
  ):
230
- if not os.path.exists("/home/user/app"): # crude check if on spaces
231
  if len(sequence) > 600:
232
  raise gr.Error(
233
  f"Your sequence is too long ({len(sequence)}). "
 
227
  num_models,
228
  mode="web",
229
  ):
230
+ if os.path.exists("/home/user/app"): # crude check if on spaces
231
  if len(sequence) > 600:
232
  raise gr.Error(
233
  f"Your sequence is too long ({len(sequence)}). "