Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
@@ -2,7 +2,7 @@ import base64
|
|
2 |
import io
|
3 |
import os
|
4 |
import zipfile
|
5 |
-
from dash import Dash, dcc, html, Input, Output, State
|
6 |
import dash_bootstrap_components as dbc
|
7 |
from docx import Document
|
8 |
import markdown
|
@@ -62,7 +62,7 @@ def process_docx(contents, filename):
|
|
62 |
State('upload-data', 'filename')]
|
63 |
)
|
64 |
def update_output(list_of_contents, list_of_names, n_clicks, contents, filenames):
|
65 |
-
ctx =
|
66 |
if not ctx.triggered:
|
67 |
return dash.no_update
|
68 |
|
|
|
2 |
import io
|
3 |
import os
|
4 |
import zipfile
|
5 |
+
from dash import Dash, dcc, html, Input, Output, State, callback_context
|
6 |
import dash_bootstrap_components as dbc
|
7 |
from docx import Document
|
8 |
import markdown
|
|
|
62 |
State('upload-data', 'filename')]
|
63 |
)
|
64 |
def update_output(list_of_contents, list_of_names, n_clicks, contents, filenames):
|
65 |
+
ctx = callback_context
|
66 |
if not ctx.triggered:
|
67 |
return dash.no_update
|
68 |
|