Spaces:
Runtime error
Runtime error
feat: adding labels
Browse files
app.py
CHANGED
|
@@ -45,18 +45,19 @@ Involution Kernel
|
|
| 45 |
description="""
|
| 46 |
Visualize the activation maps from the Involution Kernel.π΅π»ββοΈ
|
| 47 |
"""
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 48 |
iface = gr.Interface(
|
| 49 |
fn=infer,
|
| 50 |
title="Involutional Neural Networks",
|
| 51 |
article=article,
|
| 52 |
description=description,
|
| 53 |
inputs=gr.inputs.Image(label="Input Image"),
|
| 54 |
-
outputs=gr.outputs.Carousel([
|
| 55 |
-
gr.outputs.Image(label="Activation from Kernel 1"),
|
| 56 |
-
gr.outputs.Image(label="Activation from Kernel 2"),
|
| 57 |
-
gr.outputs.Image(label="Activation from Kernel 3"),
|
| 58 |
-
],
|
| 59 |
-
label="Activation Maps βΆοΈ"),
|
| 60 |
examples=[["examples/lama.jpeg"], ["examples/dalai_lama.jpeg"]],
|
| 61 |
layout="horizontal",
|
| 62 |
).launch(share=True)
|
|
|
|
| 45 |
description="""
|
| 46 |
Visualize the activation maps from the Involution Kernel.π΅π»ββοΈ
|
| 47 |
"""
|
| 48 |
+
|
| 49 |
+
labels = [
|
| 50 |
+
"1",
|
| 51 |
+
"2",
|
| 52 |
+
"3",
|
| 53 |
+
]
|
| 54 |
iface = gr.Interface(
|
| 55 |
fn=infer,
|
| 56 |
title="Involutional Neural Networks",
|
| 57 |
article=article,
|
| 58 |
description=description,
|
| 59 |
inputs=gr.inputs.Image(label="Input Image"),
|
| 60 |
+
outputs=gr.outputs.Carousel(["image", "image", "image"], label=labels),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 61 |
examples=[["examples/lama.jpeg"], ["examples/dalai_lama.jpeg"]],
|
| 62 |
layout="horizontal",
|
| 63 |
).launch(share=True)
|