Commit ·
28b840e
1
Parent(s): d5325ba
Update handler.py
Browse files- handler.py +1 -1
handler.py
CHANGED
|
@@ -11,7 +11,7 @@ class EndpointHandler():
|
|
| 11 |
self.model = AutoModelForSpeechSeq2Seq.from_pretrained(
|
| 12 |
model_id, torch_dtype=torch_dtype, low_cpu_mem_usage=True, use_safetensors=True
|
| 13 |
)
|
| 14 |
-
model.to(device)
|
| 15 |
|
| 16 |
processor = AutoProcessor.from_pretrained(model_id)
|
| 17 |
|
|
|
|
| 11 |
self.model = AutoModelForSpeechSeq2Seq.from_pretrained(
|
| 12 |
model_id, torch_dtype=torch_dtype, low_cpu_mem_usage=True, use_safetensors=True
|
| 13 |
)
|
| 14 |
+
self.model.to(device)
|
| 15 |
|
| 16 |
processor = AutoProcessor.from_pretrained(model_id)
|
| 17 |
|