Spaces:
Sleeping
Sleeping
Create app.py
Browse files
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()
|