Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -11,6 +11,8 @@ 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 |
with zipfile.ZipFile("examples.zip","r") as zip_ref:
|
15 |
zip_ref.extractall(".")
|
16 |
|
@@ -106,6 +108,6 @@ interface = gr.Interface(
|
|
106 |
],
|
107 |
title = title,
|
108 |
description = description,
|
109 |
-
article = article
|
110 |
-
examples=[[examples[i]["path"], examples[i]["label"]] for i in range(10)]
|
111 |
).launch() #share=True)
|
|
|
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.Glass()
|
15 |
+
|
16 |
with zipfile.ZipFile("examples.zip","r") as zip_ref:
|
17 |
zip_ref.extractall(".")
|
18 |
|
|
|
108 |
],
|
109 |
title = title,
|
110 |
description = description,
|
111 |
+
article = article
|
112 |
+
#examples=[[examples[i]["path"], examples[i]["label"]] for i in range(10)]
|
113 |
).launch() #share=True)
|