Fix handler Attempt 2
Browse files- handler.py +1 -1
handler.py
CHANGED
@@ -3,7 +3,7 @@ from llama_cpp import Llama
|
|
3 |
|
4 |
class EndpointHandler():
|
5 |
def __init__(self, path="", vision_model="obsidian3b"):
|
6 |
-
self.model = Llama("MrOvkill/gemma-2-inference-endpoint-GGUF", filename="gemma-2b.q8_0.gguf")
|
7 |
|
8 |
def __call__(self, data: Dict[str, Any]) -> List[Dict[str, Any]]:
|
9 |
"""
|
|
|
3 |
|
4 |
class EndpointHandler():
|
5 |
def __init__(self, path="", vision_model="obsidian3b"):
|
6 |
+
self.model = Llama.from_pretrained("MrOvkill/gemma-2-inference-endpoint-GGUF", filename="gemma-2b.q8_0.gguf")
|
7 |
|
8 |
def __call__(self, data: Dict[str, Any]) -> List[Dict[str, Any]]:
|
9 |
"""
|