derek-thomas commited on
Commit
fb23ff3
·
verified ·
1 Parent(s): 6b5ae9d

Initial trigger

Browse files
Files changed (1) hide show
  1. app.py +3 -0
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()