Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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 |
-
|
| 382 |
-
|
|
|
|
| 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()
|