ariG23498 HF staff commited on
Commit
82fffe0
1 Parent(s): 1c3cd2d

chore: adding carousel output

Browse files
Files changed (1) hide show
  1. app.py +7 -5
app.py CHANGED
@@ -51,11 +51,13 @@ iface = gr.Interface(
51
  article=article,
52
  description=description,
53
  inputs=gr.inputs.Image(label="Input Image"),
54
- outputs=[
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
  examples=[["examples/lama.jpeg"], ["examples/dalai_lama.jpeg"]],
60
  layout="horizontal",
61
  ).launch(share=True)
 
51
  article=article,
52
  description=description,
53
  inputs=gr.inputs.Image(label="Input Image"),
54
+ outputs=gr.outputs.Carousel(
55
+ components=[
56
+ gr.outputs.Image(label="Activation from Kernel 1"),
57
+ gr.outputs.Image(label="Activation from Kernel 2"),
58
+ gr.outputs.Image(label="Activation from Kernel 3"),
59
+ ]
60
+ ),
61
  examples=[["examples/lama.jpeg"], ["examples/dalai_lama.jpeg"]],
62
  layout="horizontal",
63
  ).launch(share=True)