Spaces:
Runtime error
Runtime error
Commit
·
5c5a030
1
Parent(s):
74e9d98
Update app.py
Browse files
app.py
CHANGED
|
@@ -112,13 +112,7 @@ def process_image(input_image):
|
|
| 112 |
else:
|
| 113 |
return Image.fromarray(img_geo)
|
| 114 |
|
| 115 |
-
|
| 116 |
-
desired_width = 200
|
| 117 |
-
scale_ratio = desired_width / output_image.width
|
| 118 |
-
desired_height = int(output_image.height * scale_ratio)
|
| 119 |
-
output_image_resized = output_image.resize((desired_width, desired_height), Image.ANTIALIAS)
|
| 120 |
|
| 121 |
-
return output_image_resized
|
| 122 |
|
| 123 |
# Define Gradio interface
|
| 124 |
input_image = gr.inputs.Image()
|
|
|
|
| 112 |
else:
|
| 113 |
return Image.fromarray(img_geo)
|
| 114 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 115 |
|
|
|
|
| 116 |
|
| 117 |
# Define Gradio interface
|
| 118 |
input_image = gr.inputs.Image()
|