Ubuntu commited on
Commit
3d8d4db
Β·
1 Parent(s): 5f7c167

add requirements

Browse files
Files changed (2) hide show
  1. app.py +2 -2
  2. requirements.txt +9 -0
app.py CHANGED
@@ -14,7 +14,7 @@ import time
14
  from queue import Queue
15
 
16
 
17
- os.environ["CUDA_VISIBLE_DEVICES"] = '0'
18
 
19
  # εˆε§‹εŒ–ζ¨‘εž‹
20
  print("Loading model...")
@@ -26,7 +26,7 @@ model = AutoModel.from_pretrained(
26
  trust_remote_code=True,
27
  use_safetensors=True
28
  )
29
- model = model.eval().cuda().to(torch.bfloat16)
30
  print("Model loaded successfully!")
31
 
32
 
 
14
  from queue import Queue
15
 
16
 
17
+ # os.environ["CUDA_VISIBLE_DEVICES"] = '0'
18
 
19
  # εˆε§‹εŒ–ζ¨‘εž‹
20
  print("Loading model...")
 
26
  trust_remote_code=True,
27
  use_safetensors=True
28
  )
29
+ model = model.eval() # .cuda().to(torch.bfloat16)
30
  print("Model loaded successfully!")
31
 
32
 
requirements.txt ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ transformers==4.46.3
2
+ tokenizers==0.20.3
3
+ PyMuPDF
4
+ img2pdf
5
+ einops
6
+ easydict
7
+ addict
8
+ Pillow
9
+ numpy