Spaces:
Running
on
L4
Running
on
L4
Alexander Becker
commited on
Commit
·
c347108
1
Parent(s):
0c25db5
Update warning
Browse files
app.py
CHANGED
@@ -99,7 +99,7 @@ class TheraApp(DualVisionApp):
|
|
99 |
model = kwargs.get("model", self.DEFAULT_MODEL)
|
100 |
|
101 |
if max(*image_in.size) > MAX_SIZE:
|
102 |
-
gr.Warning(f"The image has been cropped to enable a smooth experience for all users.")
|
103 |
width, height = image_in.size
|
104 |
crop_width = min(width, MAX_SIZE)
|
105 |
crop_height = min(height, MAX_SIZE)
|
|
|
99 |
model = kwargs.get("model", self.DEFAULT_MODEL)
|
100 |
|
101 |
if max(*image_in.size) > MAX_SIZE:
|
102 |
+
gr.Warning(f"The image has been cropped for better visibility, and to enable a smooth experience for all users.")
|
103 |
width, height = image_in.size
|
104 |
crop_width = min(width, MAX_SIZE)
|
105 |
crop_height = min(height, MAX_SIZE)
|