Spaces:
Running
on
Zero
Running
on
Zero
BenBranyon
commited on
Commit
•
1e70e22
1
Parent(s):
4bcf5ff
Update app.py
Browse files
app.py
CHANGED
@@ -8,7 +8,7 @@ import torch
|
|
8 |
from huggingface_hub import InferenceClient
|
9 |
from transformers import AutoModelForCausalLM, AutoTokenizer, TextIteratorStreamer
|
10 |
|
11 |
-
MAX_MAX_NEW_TOKENS =
|
12 |
DEFAULT_MAX_NEW_TOKENS = 512
|
13 |
MAX_INPUT_TOKEN_LENGTH = int(os.getenv("MAX_INPUT_TOKEN_LENGTH", "4096"))
|
14 |
|
|
|
8 |
from huggingface_hub import InferenceClient
|
9 |
from transformers import AutoModelForCausalLM, AutoTokenizer, TextIteratorStreamer
|
10 |
|
11 |
+
MAX_MAX_NEW_TOKENS = 512
|
12 |
DEFAULT_MAX_NEW_TOKENS = 512
|
13 |
MAX_INPUT_TOKEN_LENGTH = int(os.getenv("MAX_INPUT_TOKEN_LENGTH", "4096"))
|
14 |
|