taylorj94 commited on
Commit
0a736a4
·
verified ·
1 Parent(s): 85568f9

Update handler.py

Browse files
Files changed (1) hide show
  1. 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
- self.model = Llama(model_path="/repository/Llama-3.2-1B-Instruct-Q4_K_L.gguf")
 
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]]: