Commit
•
2fafff2
1
Parent(s):
3a2bb14
Update app.py
Browse files
app.py
CHANGED
@@ -62,13 +62,13 @@ with gr.Blocks() as demo:
|
|
62 |
|
63 |
with gr.Row():
|
64 |
with gr.Column():
|
65 |
-
text_input = gr.Textbox(
|
66 |
button1 = gr.Button("Insert Image Table", elem_id="button1")
|
67 |
button2 = gr.Button("Insert Tip Format", elem_id="button2")
|
68 |
button3 = gr.Button("Insert Reference", elem_id="button3")
|
69 |
with gr.Column():
|
70 |
gr.Markdown("**Live Preview**")
|
71 |
-
markdown_preview = gr.Markdown(label="Live Preview", elem_id="preview-box")
|
72 |
|
73 |
# Button click actions to append snippets
|
74 |
button1.click(append_snippet1, inputs=text_input, outputs=text_input)
|
|
|
62 |
|
63 |
with gr.Row():
|
64 |
with gr.Column():
|
65 |
+
text_input = gr.Textbox(lines=10, placeholder="Write your blog here...", label="Text Editor")
|
66 |
button1 = gr.Button("Insert Image Table", elem_id="button1")
|
67 |
button2 = gr.Button("Insert Tip Format", elem_id="button2")
|
68 |
button3 = gr.Button("Insert Reference", elem_id="button3")
|
69 |
with gr.Column():
|
70 |
gr.Markdown("**Live Preview**")
|
71 |
+
markdown_preview = gr.Markdown(value=default_md, label="Live Preview", elem_id="preview-box")
|
72 |
|
73 |
# Button click actions to append snippets
|
74 |
button1.click(append_snippet1, inputs=text_input, outputs=text_input)
|