Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -197,19 +197,19 @@ if uploaded_file is not None:
|
|
| 197 |
|
| 198 |
|
| 199 |
|
| 200 |
-
|
| 201 |
translation(img,round(image_count/len(transformation)))
|
| 202 |
|
| 203 |
-
if
|
| 204 |
rotation(img,round(image_count/len(transformation)))
|
| 205 |
#transformation.append("Rotation")
|
| 206 |
-
if
|
| 207 |
scaling(img,round(image_count/len(transformation)))
|
| 208 |
#transformation.append("Scaling")
|
| 209 |
-
if
|
| 210 |
shearing(img,round(image_count/len(transformation)))
|
| 211 |
#transformation.append("Shearing")
|
| 212 |
-
if
|
| 213 |
cropping(img,round(image_count/len(transformation)))
|
| 214 |
#transformation.append("Crop")
|
| 215 |
|
|
|
|
| 197 |
|
| 198 |
|
| 199 |
|
| 200 |
+
if "Translation" in transformation and btn:
|
| 201 |
translation(img,round(image_count/len(transformation)))
|
| 202 |
|
| 203 |
+
if "Rotation" in transformation and btn:
|
| 204 |
rotation(img,round(image_count/len(transformation)))
|
| 205 |
#transformation.append("Rotation")
|
| 206 |
+
if "Scaling" in transformation and btn:
|
| 207 |
scaling(img,round(image_count/len(transformation)))
|
| 208 |
#transformation.append("Scaling")
|
| 209 |
+
if "Shearing" in transformation and btn:
|
| 210 |
shearing(img,round(image_count/len(transformation)))
|
| 211 |
#transformation.append("Shearing")
|
| 212 |
+
if "Crop" in transformation and btn:
|
| 213 |
cropping(img,round(image_count/len(transformation)))
|
| 214 |
#transformation.append("Crop")
|
| 215 |
|