Spaces:
Build error
Build error
added/updated app files
Browse files
modules/engine_upscale.py
CHANGED
@@ -12,7 +12,7 @@ def upscale(upscale_input, progress=ui.Progress()):
|
|
12 |
payload = {'model_version': (None, '1')}; data = [('image',('upscale_input.jpg', image_bytes.getvalue(), 'image/jpeg'))]
|
13 |
|
14 |
try:
|
15 |
-
progress(0.95, desc="Upscaling image
|
16 |
response = requests.post(mode['upscale'], headers=head, data=payload, files=data, timeout=(60, 60))
|
17 |
|
18 |
if len(response.content) < 65 * 1024:
|
|
|
12 |
payload = {'model_version': (None, '1')}; data = [('image',('upscale_input.jpg', image_bytes.getvalue(), 'image/jpeg'))]
|
13 |
|
14 |
try:
|
15 |
+
progress(0.95, desc="Upscaling image")
|
16 |
response = requests.post(mode['upscale'], headers=head, data=payload, files=data, timeout=(60, 60))
|
17 |
|
18 |
if len(response.content) < 65 * 1024:
|