abidlabs HF Staff commited on
Commit
c7576cd
·
1 Parent(s): 38b6449

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +15 -0
app.py ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import gradio as gr
2
+ from gradio_rich_textbox import RichTextbox
3
+
4
+
5
+ example = RichTextbox().example_inputs()
6
+
7
+ demo = gr.Interface(
8
+ lambda x:x,
9
+ RichTextbox(), # interactive version of your component
10
+ RichTextbox(), # static version of your component
11
+ examples=[[example]], # uncomment this line to view the "example version" of your component
12
+ )
13
+
14
+
15
+ demo.launch()