shubham680 commited on
Commit
3b9285c
·
verified ·
1 Parent(s): 5b31dca

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -197,19 +197,19 @@ if uploaded_file is not None:
197
 
198
 
199
 
200
- if btn and trans:
201
  translation(img,round(image_count/len(transformation)))
202
 
203
- if btn and rot:
204
  rotation(img,round(image_count/len(transformation)))
205
  #transformation.append("Rotation")
206
- if btn and rot:
207
  scaling(img,round(image_count/len(transformation)))
208
  #transformation.append("Scaling")
209
- if btn and rot:
210
  shearing(img,round(image_count/len(transformation)))
211
  #transformation.append("Shearing")
212
- if btn and rot:
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