Spaces:
Running on Zero
Running on Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -60,9 +60,18 @@ def process_image(image, num_steps=10, guidance_scale=1.0):
|
|
| 60 |
except Exception as e:
|
| 61 |
return None, None, f"❌ Error: {str(e)}"
|
| 62 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 63 |
css = """
|
| 64 |
-
.image-container img
|
|
|
|
|
|
|
| 65 |
object-fit: contain !important;
|
|
|
|
| 66 |
}
|
| 67 |
"""
|
| 68 |
|
|
|
|
| 60 |
except Exception as e:
|
| 61 |
return None, None, f"❌ Error: {str(e)}"
|
| 62 |
|
| 63 |
+
# css = """
|
| 64 |
+
# .image-container img {
|
| 65 |
+
# object-fit: contain !important;
|
| 66 |
+
# }
|
| 67 |
+
# """
|
| 68 |
+
|
| 69 |
css = """
|
| 70 |
+
.image-container img,
|
| 71 |
+
.image-container .fixed img,
|
| 72 |
+
.image-container .fixed {
|
| 73 |
object-fit: contain !important;
|
| 74 |
+
max-height: 400px !important;
|
| 75 |
}
|
| 76 |
"""
|
| 77 |
|