cocoat commited on
Commit
bb65893
·
verified ·
1 Parent(s): c606fb9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -10
app.py CHANGED
@@ -369,14 +369,14 @@ window.addEventListener('load', () => {
369
  )
370
 
371
  # ページロード時に history から初期表示
372
- demo.load(
373
- fn=lambda: (
374
- [(img_or_url, caption) for img_or_url, caption in history],
375
- "".join(f'<div style="margin-bottom:12px">{make_html_table(caption)}</div>' for _, caption in history)
376
- ),
377
- inputs=[],
378
- outputs=[history_gallery, history_tables]
379
- )
380
 
381
- demo.queue()
382
- demo.launch()
 
369
  )
370
 
371
  # ページロード時に history から初期表示
372
+ demo.load(
373
+ fn=lambda: (
374
+ [(img_or_url, caption) for img_or_url, caption in history],
375
+ "".join(f'<div style="margin-bottom:12px">{make_html_table(caption)}</div>' for _, caption in history)
376
+ ),
377
+ inputs=[],
378
+ outputs=[history_gallery, history_tables]
379
+ )
380
 
381
+ demo.queue()
382
+ demo.launch()