import gradio as gr | |
from gradio_richtextbox import RichTextbox | |
example = RichTextbox().example_inputs() | |
demo = gr.Interface( | |
lambda x:x, | |
RichTextbox(), # interactive version | |
RichTextbox(), # static version | |
examples=[[example]], # uncomment this line to view the "example version" of your component | |
) | |
demo.launch() | |