Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -70,7 +70,7 @@ processor2,model2=load_model2()
|
|
70 |
#Load third model unichart
|
71 |
|
72 |
def load_model3():
|
73 |
-
unichart_model_path = "./
|
74 |
model3 = VisionEncoderDecoderModel.from_pretrained(unichart_model_path)
|
75 |
processor3 = DonutProcessor.from_pretrained(unichart_model_path)
|
76 |
model3.to(torch.device("cuda"))
|
|
|
70 |
#Load third model unichart
|
71 |
|
72 |
def load_model3():
|
73 |
+
unichart_model_path = "./unichart3/chartqa-checkpoint-epoch=3-170000"
|
74 |
model3 = VisionEncoderDecoderModel.from_pretrained(unichart_model_path)
|
75 |
processor3 = DonutProcessor.from_pretrained(unichart_model_path)
|
76 |
model3.to(torch.device("cuda"))
|