Spaces:
Paused
Paused
QR code and changed reqs
Browse files- DUDE.jpg +0 -0
- make_QR.py +9 -9
- qr_code_DUDER.png +3 -0
- 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 |
-
|
10 |
-
|
11 |
-
|
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((
|
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
|
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
|