thinh-researcher commited on
Commit
6be8fb2
β€’
1 Parent(s): 2fd8ce6
Files changed (2) hide show
  1. .gitignore +2 -0
  2. app.py +1 -0
.gitignore CHANGED
@@ -1,2 +1,4 @@
1
  env
2
  __pycache__
 
 
 
1
  env
2
  __pycache__
3
+ result.zip
4
+ result/*
app.py CHANGED
@@ -25,6 +25,7 @@ image = Image.open("./sample_image_cord_test_receipt_00012.png")
25
  image.save("cord_sample_receipt2.png")
26
 
27
  pretrained_model = DonutModel.from_pretrained("naver-clova-ix/donut-base-finetuned-cord-v2")
 
28
  pretrained_model.eval()
29
 
30
  demo = gr.Interface(
 
25
  image.save("cord_sample_receipt2.png")
26
 
27
  pretrained_model = DonutModel.from_pretrained("naver-clova-ix/donut-base-finetuned-cord-v2")
28
+ # pretrained_model: DonutModel = DonutModel.from_pretrained("result", local_files_only=True)
29
  pretrained_model.eval()
30
 
31
  demo = gr.Interface(