File size: 411 Bytes
227ab66 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
import gradio as gr
from gradio_niivueviewer import NiiVueViewer
example = NiiVueViewer().example_value()
demo = gr.Interface(
lambda x: x,
NiiVueViewer(), # interactive version of your component
NiiVueViewer(), # static version of your component
# examples=[[example]], # uncomment this line to view the "example version" of your component
)
if __name__ == "__main__":
demo.launch()
|