aryan365 commited on
Commit
076fdaf
·
verified ·
1 Parent(s): 54a6977

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -6
app.py CHANGED
@@ -7,14 +7,8 @@ import sys
7
  import io
8
  from ultralytics import YOLO
9
  import time
10
- from transformers import DonutProcessor, VisionEncoderDecoderModel
11
- from PIL import Image
12
 
13
 
14
- # Load the Donut model and processor (adjust the model name if needed)
15
- processor = DonutProcessor.from_pretrained('naver-clova-ix/donut-base')
16
- model = VisionEncoderDecoderModel.from_pretrained('naver-clova-ix/donut-base')
17
-
18
  # Set the default encoding to utf-8
19
  sys.stdout = io.TextIOWrapper(sys.stdout.buffer, encoding='utf-8')
20
 
 
7
  import io
8
  from ultralytics import YOLO
9
  import time
 
 
10
 
11
 
 
 
 
 
12
  # Set the default encoding to utf-8
13
  sys.stdout = io.TextIOWrapper(sys.stdout.buffer, encoding='utf-8')
14