jordyvl commited on
Commit
27a13c3
1 Parent(s): def9328

QR code and changed reqs

Browse files
Files changed (4) hide show
  1. DUDE.jpg +0 -0
  2. make_QR.py +9 -9
  3. qr_code_DUDER.png +3 -0
  4. requirements.txt +0 -2
DUDE.jpg CHANGED
make_QR.py CHANGED
@@ -1,16 +1,16 @@
1
  from PIL import Image
2
  import qrcode
3
 
4
- for image, data in zip(
5
  # ["dataset", "competition"],
6
  # ["https://huggingface.co/datasets/jordyvl/DUDE_loader", "https://rrc.cvc.uab.es/?ch=23"]
7
- ["dataset1", "dataset2", "code"],
8
- [
9
- "https://huggingface.co/datasets/bdpc/rvl_cdip_mp",
10
- "https://huggingface.co/datasets/bdpc/rvl_cdip_n_mp",
11
- "https://huggingface.co/bdpc/src",
12
- ],
13
- ):
14
  # Create a QR code object
15
  qr = qrcode.QRCode(box_size=10, border=4, error_correction=qrcode.constants.ERROR_CORRECT_H) # version=1,
16
 
@@ -35,7 +35,7 @@ for image, data in zip(
35
  logo = Image.open(f"{image}.jpg").convert("RGB")
36
 
37
  # Resize the logo or image if needed
38
- logo = logo.resize((75, 75))
39
 
40
  # Position the logo or image in the center of the QR code
41
  img_w, img_h = img.size
 
1
  from PIL import Image
2
  import qrcode
3
 
4
+ for image, data in zip(["DUDER"], ["https://huggingface.co/spaces/jordyvl/ask_my_thesis"]):
5
  # ["dataset", "competition"],
6
  # ["https://huggingface.co/datasets/jordyvl/DUDE_loader", "https://rrc.cvc.uab.es/?ch=23"]
7
+ # ["dataset1", "dataset2", "code"],
8
+ # [
9
+ # "https://huggingface.co/datasets/bdpc/rvl_cdip_mp",
10
+ # "https://huggingface.co/datasets/bdpc/rvl_cdip_n_mp",
11
+ # "https://huggingface.co/bdpc/src",
12
+ # ],
13
+ # ):
14
  # Create a QR code object
15
  qr = qrcode.QRCode(box_size=10, border=4, error_correction=qrcode.constants.ERROR_CORRECT_H) # version=1,
16
 
 
35
  logo = Image.open(f"{image}.jpg").convert("RGB")
36
 
37
  # Resize the logo or image if needed
38
+ logo = logo.resize((150, 150))
39
 
40
  # Position the logo or image in the center of the QR code
41
  img_w, img_h = img.size
qr_code_DUDER.png ADDED

Git LFS Details

  • SHA256: a08b98cf24093ffca93059f354db08f21d3714240029fac3b14ac96e21eeb4de
  • Pointer size: 130 Bytes
  • Size of remote file: 31.7 kB
requirements.txt CHANGED
@@ -4,6 +4,4 @@ transformers
4
  llama-index
5
  llama-index-embeddings-huggingface
6
  llama-index-llms-huggingface
7
- accelerate
8
- --index-url https://pypi.org/simple/bitsandbytes
9
  einops
 
4
  llama-index
5
  llama-index-embeddings-huggingface
6
  llama-index-llms-huggingface
 
 
7
  einops