Spaces:
Runtime error
Runtime error
test
Browse files
app.py
CHANGED
@@ -18,8 +18,8 @@ import torch
|
|
18 |
# install('mmcv-full')
|
19 |
# install('mmengine')
|
20 |
# install('mmdet')
|
21 |
-
from mmocr.apis import MMOCRInferencer
|
22 |
-
ocr = MMOCRInferencer(det='TextSnake', rec='ABINet_Vision')
|
23 |
|
24 |
url = (
|
25 |
"https://upload.wikimedia.org/wikipedia/commons/3/38/Adorable-animal-cat-20787.jpg"
|
@@ -102,7 +102,7 @@ output_img = gr.outputs.Image(label="Output of Integrated Gradients", type="pil"
|
|
102 |
|
103 |
title = "XAI - Integrated gradients"
|
104 |
description = "Playground: Integrated gradients for a ResNet model trained on Imagenet dataset. Tools: Alibi, TF, Gradio."
|
105 |
-
examples = [["./cat.jpg"
|
106 |
article = "<p style='text-align: center'><a href='https://github.com/mawady' target='_blank'>By Dr. Mohamed Elawady</a></p>"
|
107 |
iface = gr.Interface(
|
108 |
fn=do_process,
|
|
|
18 |
# install('mmcv-full')
|
19 |
# install('mmengine')
|
20 |
# install('mmdet')
|
21 |
+
# from mmocr.apis import MMOCRInferencer
|
22 |
+
# ocr = MMOCRInferencer(det='TextSnake', rec='ABINet_Vision')
|
23 |
|
24 |
url = (
|
25 |
"https://upload.wikimedia.org/wikipedia/commons/3/38/Adorable-animal-cat-20787.jpg"
|
|
|
102 |
|
103 |
title = "XAI - Integrated gradients"
|
104 |
description = "Playground: Integrated gradients for a ResNet model trained on Imagenet dataset. Tools: Alibi, TF, Gradio."
|
105 |
+
examples = [["./cat.jpg"], ["./dog.jpg"]]
|
106 |
article = "<p style='text-align: center'><a href='https://github.com/mawady' target='_blank'>By Dr. Mohamed Elawady</a></p>"
|
107 |
iface = gr.Interface(
|
108 |
fn=do_process,
|