Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
@@ -53,7 +53,6 @@ def convert_files(filenames):
|
|
53 |
os.unlink(temp_pdf_path)
|
54 |
os.unlink(temp_docx_path)
|
55 |
|
56 |
-
conversion_progress['overall'] = 100
|
57 |
conversion_complete = True
|
58 |
|
59 |
app.layout = dbc.Container([
|
@@ -82,7 +81,7 @@ app.layout = dbc.Container([
|
|
82 |
dbc.Button("Convert and Download", id="convert-button", color="primary", className="mt-3 mb-3", disabled=True),
|
83 |
html.Div(id='conversion-output'),
|
84 |
dcc.Download(id="download-zip"),
|
85 |
-
dcc.Interval(id='interval-component', interval=
|
86 |
]),
|
87 |
className="mt-3"
|
88 |
)
|
@@ -121,7 +120,6 @@ def start_conversion(n_clicks):
|
|
121 |
global conversion_progress, converted_files, conversion_complete
|
122 |
conversion_progress.clear()
|
123 |
converted_files.clear()
|
124 |
-
conversion_progress['overall'] = 0
|
125 |
conversion_complete = False
|
126 |
|
127 |
threading.Thread(target=convert_files, args=(list(uploaded_files.keys()),)).start()
|
|
|
53 |
os.unlink(temp_pdf_path)
|
54 |
os.unlink(temp_docx_path)
|
55 |
|
|
|
56 |
conversion_complete = True
|
57 |
|
58 |
app.layout = dbc.Container([
|
|
|
81 |
dbc.Button("Convert and Download", id="convert-button", color="primary", className="mt-3 mb-3", disabled=True),
|
82 |
html.Div(id='conversion-output'),
|
83 |
dcc.Download(id="download-zip"),
|
84 |
+
dcc.Interval(id='interval-component', interval=100, n_intervals=0, disabled=True)
|
85 |
]),
|
86 |
className="mt-3"
|
87 |
)
|
|
|
120 |
global conversion_progress, converted_files, conversion_complete
|
121 |
conversion_progress.clear()
|
122 |
converted_files.clear()
|
|
|
123 |
conversion_complete = False
|
124 |
|
125 |
threading.Thread(target=convert_files, args=(list(uploaded_files.keys()),)).start()
|