Spaces:
Running
on
Zero
Running
on
Zero
BenBranyon
commited on
Commit
•
921b1d9
1
Parent(s):
7956515
Update app.py
Browse files
app.py
CHANGED
@@ -8,8 +8,8 @@ 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 =
|
13 |
MAX_INPUT_TOKEN_LENGTH = int(os.getenv("MAX_INPUT_TOKEN_LENGTH", "4096"))
|
14 |
|
15 |
#Inference API Code
|
|
|
8 |
from huggingface_hub import InferenceClient
|
9 |
from transformers import AutoModelForCausalLM, AutoTokenizer, TextIteratorStreamer
|
10 |
|
11 |
+
MAX_MAX_NEW_TOKENS = 1024
|
12 |
+
DEFAULT_MAX_NEW_TOKENS = 512
|
13 |
MAX_INPUT_TOKEN_LENGTH = int(os.getenv("MAX_INPUT_TOKEN_LENGTH", "4096"))
|
14 |
|
15 |
#Inference API Code
|