Update handler.py
Browse files- handler.py +3 -2
handler.py
CHANGED
@@ -30,8 +30,9 @@ class EndpointHandler:
|
|
30 |
Args:
|
31 |
path (str): Path to the GGUF file.
|
32 |
"""
|
33 |
-
|
34 |
-
|
|
|
35 |
self.tokenizer = self.model.tokenizer # GGUF-specific tokenizer, if available
|
36 |
|
37 |
def __call__(self, data: Any) -> List[Dict[str, str]]:
|
|
|
30 |
Args:
|
31 |
path (str): Path to the GGUF file.
|
32 |
"""
|
33 |
+
files_and_dirs = os.listdir(".") # "." represents the current directory
|
34 |
+
print(files_and_dirs)
|
35 |
+
self.model = Llama(model_path="./Llama-3.2-1B-Instruct-Q4_K_L.gguf")
|
36 |
self.tokenizer = self.model.tokenizer # GGUF-specific tokenizer, if available
|
37 |
|
38 |
def __call__(self, data: Any) -> List[Dict[str, str]]:
|