Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -48,7 +48,7 @@ ko_deplot_model_path = './deplot_model_ver_24.11.21_korean_only(exclude NUUA)_ep
|
|
48 |
def load_model1():
|
49 |
processor1 = Pix2StructProcessor.from_pretrained('nuua/ko-deplot')
|
50 |
model1 = Pix2StructForConditionalGeneration.from_pretrained('nuua/ko-deplot')
|
51 |
-
model1.load_state_dict(torch.load(
|
52 |
model1.to(torch.device("cuda"))
|
53 |
return processor1, model1
|
54 |
|
|
|
48 |
def load_model1():
|
49 |
processor1 = Pix2StructProcessor.from_pretrained('nuua/ko-deplot')
|
50 |
model1 = Pix2StructForConditionalGeneration.from_pretrained('nuua/ko-deplot')
|
51 |
+
model1.load_state_dict(torch.load('Sangjun2/skku-Deplot/deplot_model_ver_24.11.21_korean_only(exclude NUUA)_epoch3.bin', map_location="cpu"))
|
52 |
model1.to(torch.device("cuda"))
|
53 |
return processor1, model1
|
54 |
|