Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -197,24 +197,24 @@ if uploaded_file is not None:
|
|
| 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 |
|
| 216 |
-
|
| 217 |
-
|
| 218 |
|
| 219 |
#st.download_button("Download File",img_rgb)
|
| 220 |
|
|
|
|
| 197 |
|
| 198 |
|
| 199 |
|
| 200 |
+
if "Translation" in transformation and btn and trans:
|
| 201 |
translation(img,round(image_count/len(transformation)))
|
| 202 |
|
| 203 |
+
if "Rotation" in transformation and btn and rot:
|
| 204 |
rotation(img,round(image_count/len(transformation)))
|
| 205 |
#transformation.append("Rotation")
|
| 206 |
+
if "Scaling" in transformation and btn and rot:
|
| 207 |
scaling(img,round(image_count/len(transformation)))
|
| 208 |
#transformation.append("Scaling")
|
| 209 |
+
if "Shearing" in transformation and btn and rot:
|
| 210 |
shearing(img,round(image_count/len(transformation)))
|
| 211 |
#transformation.append("Shearing")
|
| 212 |
+
if "Crop" in transformation and btn and rot:
|
| 213 |
cropping(img,round(image_count/len(transformation)))
|
| 214 |
#transformation.append("Crop")
|
| 215 |
|
| 216 |
+
if not btn:
|
| 217 |
+
zip_file()
|
| 218 |
|
| 219 |
#st.download_button("Download File",img_rgb)
|
| 220 |
|