Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -32,6 +32,8 @@ def process_image(input_image):
|
|
| 32 |
# Convert result to numpy array if it's not already
|
| 33 |
result_array = np.array(upscaled_image)
|
| 34 |
|
|
|
|
|
|
|
| 35 |
return [input_image, result_array]
|
| 36 |
|
| 37 |
@spaces.GPU
|
|
@@ -75,7 +77,7 @@ with gr.Blocks() as demo:
|
|
| 75 |
inputs=input_image,
|
| 76 |
outputs=output_slider,
|
| 77 |
fn=process_image,
|
| 78 |
-
cache_examples=True
|
| 79 |
)
|
| 80 |
|
| 81 |
demo.launch(debug=True)
|
|
|
|
| 32 |
# Convert result to numpy array if it's not already
|
| 33 |
result_array = np.array(upscaled_image)
|
| 34 |
|
| 35 |
+
print(input_image, result_array)
|
| 36 |
+
|
| 37 |
return [input_image, result_array]
|
| 38 |
|
| 39 |
@spaces.GPU
|
|
|
|
| 77 |
inputs=input_image,
|
| 78 |
outputs=output_slider,
|
| 79 |
fn=process_image,
|
| 80 |
+
cache_examples=True,
|
| 81 |
)
|
| 82 |
|
| 83 |
demo.launch(debug=True)
|