path change test
Browse files- .DS_Store +0 -0
- app.py +3 -3
- data/.DS_Store +0 -0
.DS_Store
CHANGED
|
Binary files a/.DS_Store and b/.DS_Store differ
|
|
|
app.py
CHANGED
|
@@ -77,8 +77,8 @@ def predict(image, mode):
|
|
| 77 |
|
| 78 |
# Path to example images for "Fake" and "Real" classes
|
| 79 |
example_images = [
|
| 80 |
-
["data/fake/fake_1.jpeg", "Fast"], # Fake example
|
| 81 |
-
["data/real/real_1.jpg", "Fast"], # Real example
|
| 82 |
]
|
| 83 |
|
| 84 |
# Gradio interface
|
|
@@ -92,7 +92,7 @@ iface = gr.Interface(
|
|
| 92 |
gr.Textbox(label="Prediction"), # Prediction output
|
| 93 |
gr.Textbox(label="Time Taken") # Time taken output
|
| 94 |
],
|
| 95 |
-
examples=example_images,
|
| 96 |
title="Deepfake Detection Model",
|
| 97 |
description="Upload an image or select a sample and choose the inference mode (Fast or Secure)."
|
| 98 |
)
|
|
|
|
| 77 |
|
| 78 |
# Path to example images for "Fake" and "Real" classes
|
| 79 |
example_images = [
|
| 80 |
+
["./data/fake/fake_1.jpeg", "Fast"], # Fake example
|
| 81 |
+
["./data/real/real_1.jpg", "Fast"], # Real example
|
| 82 |
]
|
| 83 |
|
| 84 |
# Gradio interface
|
|
|
|
| 92 |
gr.Textbox(label="Prediction"), # Prediction output
|
| 93 |
gr.Textbox(label="Time Taken") # Time taken output
|
| 94 |
],
|
| 95 |
+
examples=example_images,
|
| 96 |
title="Deepfake Detection Model",
|
| 97 |
description="Upload an image or select a sample and choose the inference mode (Fast or Secure)."
|
| 98 |
)
|
data/.DS_Store
ADDED
|
Binary file (6.15 kB). View file
|
|
|