Sangjun2 commited on
Commit
9272035
Β·
verified Β·
1 Parent(s): 83663f0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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(ko_deplot_model_path, map_location="cpu"))
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