Initial trigger
Browse files
app.py
CHANGED
@@ -77,5 +77,8 @@ with gr.Blocks() as demo:
|
|
77 |
|
78 |
# Live preview update
|
79 |
text_input.change(preview_text, inputs=text_input, outputs=markdown_preview)
|
|
|
|
|
|
|
80 |
|
81 |
demo.launch()
|
|
|
77 |
|
78 |
# Live preview update
|
79 |
text_input.change(preview_text, inputs=text_input, outputs=markdown_preview)
|
80 |
+
|
81 |
+
# Manually trigger the initial rendering of the live preview
|
82 |
+
markdown_preview.update(default_text)
|
83 |
|
84 |
demo.launch()
|