Update handler.py
Browse files- handler.py +2 -2
handler.py
CHANGED
@@ -18,8 +18,8 @@ from coresugg import ConversationPayload as ConversationPayloadSugg, create_conv
|
|
18 |
from corechat import ConversationPayload as ConversationPayloadChat, get_conversation_suggestions, NUMBER_OF_MESSAGES_FOR_CONTEXT as NUMBER_OF_MESSAGES_FOR_CONTEXT_CHAT
|
19 |
|
20 |
class EndpointHandler:
|
21 |
-
def __init__(self):
|
22 |
-
|
23 |
|
24 |
def integration(self, data: Dict[str, Any]) -> Dict[str, Any]:
|
25 |
payload = ConversationPayloadSugg(**data)
|
|
|
18 |
from corechat import ConversationPayload as ConversationPayloadChat, get_conversation_suggestions, NUMBER_OF_MESSAGES_FOR_CONTEXT as NUMBER_OF_MESSAGES_FOR_CONTEXT_CHAT
|
19 |
|
20 |
class EndpointHandler:
|
21 |
+
def __init__(self, model_dir):
|
22 |
+
self.model_dir = model_dir
|
23 |
|
24 |
def integration(self, data: Dict[str, Any]) -> Dict[str, Any]:
|
25 |
payload = ConversationPayloadSugg(**data)
|