Update handler.py
Browse files- handler.py +2 -2
handler.py
CHANGED
@@ -3,7 +3,7 @@ from typing import Dict, List, Any
|
|
3 |
from llama_cpp import Llama
|
4 |
import gemma_tools
|
5 |
|
6 |
-
MAX_TOKENS =
|
7 |
|
8 |
|
9 |
class EndpointHandler():
|
@@ -51,7 +51,7 @@ class EndpointHandler():
|
|
51 |
"detail": str(e)
|
52 |
}]
|
53 |
|
54 |
-
max_length = data.get("max_length",
|
55 |
try:
|
56 |
max_length = int(max_length)
|
57 |
print(f"Max length set to: {max_length}")
|
|
|
3 |
from llama_cpp import Llama
|
4 |
import gemma_tools
|
5 |
|
6 |
+
MAX_TOKENS = 1000
|
7 |
|
8 |
|
9 |
class EndpointHandler():
|
|
|
51 |
"detail": str(e)
|
52 |
}]
|
53 |
|
54 |
+
max_length = data.get("max_length", 212)
|
55 |
try:
|
56 |
max_length = int(max_length)
|
57 |
print(f"Max length set to: {max_length}")
|