Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
|
@@ -71,9 +71,13 @@ app.layout = dbc.Container([
|
|
| 71 |
},
|
| 72 |
multiple=False
|
| 73 |
),
|
|
|
|
|
|
|
|
|
|
|
|
|
| 74 |
dbc.Button("Upscale Image", id="upscale-button", color="primary", className="mt-3"),
|
| 75 |
html.Div(id='upscaling-status', className="mt-3"),
|
| 76 |
-
],
|
| 77 |
]),
|
| 78 |
dbc.Row([
|
| 79 |
dbc.Col([
|
|
@@ -82,8 +86,8 @@ app.layout = dbc.Container([
|
|
| 82 |
], md=12, lg=6),
|
| 83 |
dbc.Col([
|
| 84 |
html.H4("Upscaled Image", className="mt-4"),
|
|
|
|
| 85 |
dbc.Card(id='output-upscaled-image', body=True),
|
| 86 |
-
dbc.Button("Download Upscaled Image", id="download-button", color="success", className="mt-3", disabled=True),
|
| 87 |
dcc.Download(id="download-image")
|
| 88 |
], md=12, lg=6),
|
| 89 |
]),
|
|
@@ -114,8 +118,9 @@ def upscale_image_callback(n_clicks, contents):
|
|
| 114 |
return "Please upload an image first.", None, True
|
| 115 |
|
| 116 |
status_div = html.Div([
|
| 117 |
-
|
| 118 |
-
html.
|
|
|
|
| 119 |
])
|
| 120 |
|
| 121 |
def upscale_thread():
|
|
|
|
| 71 |
},
|
| 72 |
multiple=False
|
| 73 |
),
|
| 74 |
+
], width=12),
|
| 75 |
+
]),
|
| 76 |
+
dbc.Row([
|
| 77 |
+
dbc.Col([
|
| 78 |
dbc.Button("Upscale Image", id="upscale-button", color="primary", className="mt-3"),
|
| 79 |
html.Div(id='upscaling-status', className="mt-3"),
|
| 80 |
+
], width=12, className="text-center"),
|
| 81 |
]),
|
| 82 |
dbc.Row([
|
| 83 |
dbc.Col([
|
|
|
|
| 86 |
], md=12, lg=6),
|
| 87 |
dbc.Col([
|
| 88 |
html.H4("Upscaled Image", className="mt-4"),
|
| 89 |
+
dbc.Button("Download Upscaled Image", id="download-button", color="success", className="mb-3", disabled=True),
|
| 90 |
dbc.Card(id='output-upscaled-image', body=True),
|
|
|
|
| 91 |
dcc.Download(id="download-image")
|
| 92 |
], md=12, lg=6),
|
| 93 |
]),
|
|
|
|
| 118 |
return "Please upload an image first.", None, True
|
| 119 |
|
| 120 |
status_div = html.Div([
|
| 121 |
+
dbc.Spinner(size="sm", color="primary", type="grow"),
|
| 122 |
+
html.Span(" Upscaling image... ", style={'marginLeft': '10px'}),
|
| 123 |
+
html.Div(className="pulsing-dot d-inline-block")
|
| 124 |
])
|
| 125 |
|
| 126 |
def upscale_thread():
|