Spaces:
Paused
Paused
CreitinGameplays
commited on
Commit
•
5c2ab5b
1
Parent(s):
fab78ee
Update app.py
Browse files
app.py
CHANGED
@@ -7,9 +7,9 @@ import spaces
|
|
7 |
import torch
|
8 |
from transformers import AutoModelForCausalLM, AutoTokenizer, TextIteratorStreamer
|
9 |
|
10 |
-
MAX_MAX_NEW_TOKENS =
|
11 |
DEFAULT_MAX_NEW_TOKENS = 1024
|
12 |
-
MAX_INPUT_TOKEN_LENGTH = int(os.getenv("MAX_INPUT_TOKEN_LENGTH", "
|
13 |
|
14 |
DESCRIPTION = """\
|
15 |
# ConvAI 9b v2 Chat
|
|
|
7 |
import torch
|
8 |
from transformers import AutoModelForCausalLM, AutoTokenizer, TextIteratorStreamer
|
9 |
|
10 |
+
MAX_MAX_NEW_TOKENS = 4096
|
11 |
DEFAULT_MAX_NEW_TOKENS = 1024
|
12 |
+
MAX_INPUT_TOKEN_LENGTH = int(os.getenv("MAX_INPUT_TOKEN_LENGTH", "9000"))
|
13 |
|
14 |
DESCRIPTION = """\
|
15 |
# ConvAI 9b v2 Chat
|