Update app.py
Browse files
app.py
CHANGED
@@ -11,8 +11,9 @@ from pytorch_grad_cam import GradCAM
|
|
11 |
from pytorch_grad_cam.utils.model_targets import ClassifierOutputTarget
|
12 |
from pytorch_grad_cam.utils.image import show_cam_on_image
|
13 |
|
14 |
-
gr.themes.
|
15 |
-
|
|
|
16 |
with zipfile.ZipFile("examples.zip","r") as zip_ref:
|
17 |
zip_ref.extractall(".")
|
18 |
|
@@ -102,9 +103,9 @@ interface = gr.Interface(
|
|
102 |
#"text"
|
103 |
],
|
104 |
outputs=[
|
105 |
-
gr.outputs.Label(label="Prediction
|
106 |
#"text",
|
107 |
-
gr.outputs.Image(label="
|
108 |
],
|
109 |
title = title,
|
110 |
description = description,
|
|
|
11 |
from pytorch_grad_cam.utils.model_targets import ClassifierOutputTarget
|
12 |
from pytorch_grad_cam.utils.image import show_cam_on_image
|
13 |
|
14 |
+
gr.themes.Soft()
|
15 |
+
gr.themes.builder()
|
16 |
+
|
17 |
with zipfile.ZipFile("examples.zip","r") as zip_ref:
|
18 |
zip_ref.extractall(".")
|
19 |
|
|
|
103 |
#"text"
|
104 |
],
|
105 |
outputs=[
|
106 |
+
gr.outputs.Label(label="Prediction Model - Fake or Real image detection") #,
|
107 |
#"text",
|
108 |
+
gr.outputs.Image(label="Explainability")
|
109 |
],
|
110 |
title = title,
|
111 |
description = description,
|