njwright92 commited on
Commit
7b23915
·
verified ·
1 Parent(s): 8d062f6

Update handler.py

Browse files
Files changed (1) hide show
  1. 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 = 5000
7
 
8
 
9
  class EndpointHandler():
@@ -51,7 +51,7 @@ class EndpointHandler():
51
  "detail": str(e)
52
  }]
53
 
54
- max_length = data.get("max_length", 512)
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}")