Update handler.py
Browse files- handler.py +0 -1
handler.py
CHANGED
|
@@ -5,7 +5,6 @@ from PIL import Image
|
|
| 5 |
class EndpointHandler():
|
| 6 |
def __init__(self, path=""):
|
| 7 |
disable_torch_init()
|
| 8 |
-
device = torch.cuda_device
|
| 9 |
self.processor = LlavaNextProcessor.from_pretrained(path, use_fast=False)
|
| 10 |
self.model = LlavaNextForConditionalGeneration.from_pretrained(
|
| 11 |
path,
|
|
|
|
| 5 |
class EndpointHandler():
|
| 6 |
def __init__(self, path=""):
|
| 7 |
disable_torch_init()
|
|
|
|
| 8 |
self.processor = LlavaNextProcessor.from_pretrained(path, use_fast=False)
|
| 9 |
self.model = LlavaNextForConditionalGeneration.from_pretrained(
|
| 10 |
path,
|