Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -205,7 +205,7 @@ def infer(
|
|
| 205 |
original_image = input_image.convert("RGB")
|
| 206 |
|
| 207 |
# Use the new function to update dimensions
|
| 208 |
-
width, height = original_image
|
| 209 |
|
| 210 |
result = pipe(
|
| 211 |
image=original_image,
|
|
|
|
| 205 |
original_image = input_image.convert("RGB")
|
| 206 |
|
| 207 |
# Use the new function to update dimensions
|
| 208 |
+
width, height = update_dimensions_on_upload(original_image)
|
| 209 |
|
| 210 |
result = pipe(
|
| 211 |
image=original_image,
|