Sahar7888 commited on
Commit
ae3a77d
·
verified ·
1 Parent(s): d542f4b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -5
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
- examples = [
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=examples # Example images
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