Update handler.py
Browse files- handler.py +1 -0
handler.py
CHANGED
@@ -19,6 +19,7 @@ class EndpointHandler:
|
|
19 |
self.model = pickle.load(f)
|
20 |
|
21 |
self.tokenizer = AutoTokenizer.from_pretrained(model_folder_path, use_fast=False)
|
|
|
22 |
|
23 |
|
24 |
|
|
|
19 |
self.model = pickle.load(f)
|
20 |
|
21 |
self.tokenizer = AutoTokenizer.from_pretrained(model_folder_path, use_fast=False)
|
22 |
+
self.model.to(DEV)
|
23 |
|
24 |
|
25 |
|