Update app.py
Browse files
app.py
CHANGED
@@ -25,10 +25,7 @@ def compare_images(original_img, tampered_img):
|
|
25 |
# Gradio Interface
|
26 |
def gradio_interface():
|
27 |
# Folder with example images
|
28 |
-
|
29 |
-
["./image/original.png", "./image/tampered.png"]
|
30 |
-
]
|
31 |
-
|
32 |
# Project description
|
33 |
description = """
|
34 |
## PAN Card Tampering Detection App
|
@@ -54,7 +51,7 @@ def gradio_interface():
|
|
54 |
],
|
55 |
outputs="text", # Output: SSIM score as text
|
56 |
description=description,
|
57 |
-
examples=
|
58 |
|
59 |
)
|
60 |
|
|
|
25 |
# Gradio Interface
|
26 |
def gradio_interface():
|
27 |
# Folder with example images
|
28 |
+
example_list = [["examples/" + example] for example in os.listdir("examples")]
|
|
|
|
|
|
|
29 |
# Project description
|
30 |
description = """
|
31 |
## PAN Card Tampering Detection App
|
|
|
51 |
],
|
52 |
outputs="text", # Output: SSIM score as text
|
53 |
description=description,
|
54 |
+
examples=example_list,
|
55 |
|
56 |
)
|
57 |
|