Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -1210,7 +1210,7 @@ with gr.Blocks(css=BASE_CSS, title="ForgeCaptions") as demo:
|
|
| 1210 |
table.change(sync_table_to_session, inputs=[table, rows_state], outputs=[rows_state, gallery, autosave_md])
|
| 1211 |
|
| 1212 |
def new_session() -> Tuple[List[dict], list, list, str]:
|
| 1213 |
-
|
| 1214 |
|
| 1215 |
# ---- Import hook
|
| 1216 |
def _do_import(fpath, rows):
|
|
|
|
| 1210 |
table.change(sync_table_to_session, inputs=[table, rows_state], outputs=[rows_state, gallery, autosave_md])
|
| 1211 |
|
| 1212 |
def new_session() -> Tuple[List[dict], list, list, str]:
|
| 1213 |
+
return [], [], _rows_to_table([]), ""
|
| 1214 |
|
| 1215 |
# ---- Import hook
|
| 1216 |
def _do_import(fpath, rows):
|