Charlie Li commited on
Commit
bbe286f
1 Parent(s): c28f323

update app.

Browse files
Files changed (1) hide show
  1. app.py +12 -6
app.py CHANGED
@@ -170,11 +170,17 @@ with gr.Blocks() as app:
170
  )
171
  r_d_text = gr.Textbox(label="Recognition from the model", interactive=False)
172
  vanilla_text = gr.Textbox(label="Vanilla", interactive=False)
173
-
 
 
174
  with gr.Row():
175
- d_t_vid = gr.Video(label="Derender with Text", autoplay=True)
176
- r_d_vid = gr.Video(label="Recognize and Derender", autoplay=True)
177
- vanilla_vid = gr.Video(label="Vanilla", autoplay=True)
 
 
 
 
178
 
179
  with gr.Row():
180
  btn_sub = gr.Button("Sample")
@@ -196,7 +202,7 @@ with gr.Blocks() as app:
196
  ],
197
  )
198
 
199
- gr.Markdown("## Additional Word-level Samples")
200
 
201
  html_content = """
202
  <div style="display: flex; justify-content: space-around; flex-wrap: wrap; gap: 0px;">
@@ -216,7 +222,7 @@ with gr.Blocks() as app:
216
  gr.HTML(html_content)
217
 
218
  # Sketches
219
- gr.Markdown("## Additional Sketch Samples")
220
 
221
  html_content = """
222
  <div style="display: flex; justify-content: space-around; flex-wrap: wrap; gap: 0px;">
 
170
  )
171
  r_d_text = gr.Textbox(label="Recognition from the model", interactive=False)
172
  vanilla_text = gr.Textbox(label="Vanilla", interactive=False)
173
+ gr.Markdown(
174
+ "To visualize the writing process in video, select *Output format* as **Image+Video**."
175
+ )
176
  with gr.Row():
177
+ d_t_vid = gr.Video(
178
+ label="Derender with Text (Click to stop/play)", autoplay=True
179
+ )
180
+ r_d_vid = gr.Video(
181
+ label="Recognize and Derender (Click to stop/play)", autoplay=True
182
+ )
183
+ vanilla_vid = gr.Video(label="Vanilla (Click to stop/play)", autoplay=True)
184
 
185
  with gr.Row():
186
  btn_sub = gr.Button("Sample")
 
202
  ],
203
  )
204
 
205
+ gr.Markdown("## More Word-level Samples")
206
 
207
  html_content = """
208
  <div style="display: flex; justify-content: space-around; flex-wrap: wrap; gap: 0px;">
 
222
  gr.HTML(html_content)
223
 
224
  # Sketches
225
+ gr.Markdown("## Sketch Samples")
226
 
227
  html_content = """
228
  <div style="display: flex; justify-content: space-around; flex-wrap: wrap; gap: 0px;">