Spaces:
Runtime error
Runtime error
Simon Duerr
commited on
Commit
·
5cc9777
1
Parent(s):
6c93db3
add warning for seqs >600
Browse files
app.py
CHANGED
|
@@ -227,7 +227,7 @@ def predict(
|
|
| 227 |
num_models,
|
| 228 |
mode="web",
|
| 229 |
):
|
| 230 |
-
if
|
| 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)}). "
|