Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -190,8 +190,6 @@ def preprocess_image(input_image: Image.Image) -> Image.Image:
|
|
190 |
def preprocess_n_magnify(input_image: Image.Image):
|
191 |
duration = preprocess_image(input_image)
|
192 |
|
193 |
-
yield duration, (None, None)
|
194 |
-
|
195 |
img, magnified_img = magnify(input_image, duration)
|
196 |
|
197 |
return duration, (img, magnified_img)
|
@@ -351,9 +349,6 @@ with gr.Blocks(css=css, theme=theme) as demo:
|
|
351 |
[
|
352 |
"preset/datasets/test_datasets/179.png",
|
353 |
],
|
354 |
-
[
|
355 |
-
"preset/datasets/test_datasets/history.png",
|
356 |
-
],
|
357 |
[
|
358 |
"preset/datasets/test_datasets/cinema.png",
|
359 |
],
|
|
|
190 |
def preprocess_n_magnify(input_image: Image.Image):
|
191 |
duration = preprocess_image(input_image)
|
192 |
|
|
|
|
|
193 |
img, magnified_img = magnify(input_image, duration)
|
194 |
|
195 |
return duration, (img, magnified_img)
|
|
|
349 |
[
|
350 |
"preset/datasets/test_datasets/179.png",
|
351 |
],
|
|
|
|
|
|
|
352 |
[
|
353 |
"preset/datasets/test_datasets/cinema.png",
|
354 |
],
|