Update app.py
Browse files
app.py
CHANGED
@@ -6,7 +6,7 @@ import random
|
|
6 |
import torch
|
7 |
|
8 |
IS_DUPLICATE = not os.getenv('SPACE_ID', '').startswith('hexgrad/')
|
9 |
-
CHAR_LIMIT = None if IS_DUPLICATE else
|
10 |
|
11 |
CUDA_AVAILABLE = torch.cuda.is_available()
|
12 |
models = {gpu: KModel().to('cuda' if gpu else 'cpu').eval() for gpu in [False] + ([True] if CUDA_AVAILABLE else [])}
|
|
|
6 |
import torch
|
7 |
|
8 |
IS_DUPLICATE = not os.getenv('SPACE_ID', '').startswith('hexgrad/')
|
9 |
+
CHAR_LIMIT = None if IS_DUPLICATE else 500000
|
10 |
|
11 |
CUDA_AVAILABLE = torch.cuda.is_available()
|
12 |
models = {gpu: KModel().to('cuda' if gpu else 'cpu').eval() for gpu in [False] + ([True] if CUDA_AVAILABLE else [])}
|