gradio_pannellum / README.md
Wauplin's picture
Wauplin HF staff
Update README.md
022edae
metadata
tags:
  - gradio-custom-component
  - gradio-template-Image
title: gradio_pannellum V0.0.1
colorFrom: indigo
colorTo: pink
sdk: docker
pinned: false
license: apache-2.0

Gradio Custom Component to integrate the great Pannellum library, a lightweight, free, and open source panorama viewer for the web.

Installation:

pip install gradio-pannellum

Usage:


import gradio as gr
from gradio_pannellum import Pannellum


example = Pannellum().example_inputs()

demo = gr.Interface(
    lambda x:x,
    Pannellum(),  # interactive version of your component
    Pannellum(),  # static version of your component
    examples=[[example]],
)


demo.launch()

Screenshot: