nick-leland commited on
Commit
c9e7f8b
·
1 Parent(s): ff36ed6

Fixed the naming convention

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -143,11 +143,11 @@ def transform_image(image, func_choice, radius, center_x, center_y, strength, ed
143
 
144
  if func_choice == "Pinch":
145
  func = pinch
146
- elif func_choice == "Shift":
147
  func = shift
148
  elif func_choice == "Bulge":
149
  func = bulge
150
- elif func_choice == "Spiral":
151
  func = lambda x, y: spiral(x, y, frequency=spiral_frequency)
152
 
153
  transformed, (gx, gy) = apply_vector_field_transform(I, func, radius, (center_y, center_x), strength, edge_smoothness)
 
143
 
144
  if func_choice == "Pinch":
145
  func = pinch
146
+ elif func_choice == "Spiral":
147
  func = shift
148
  elif func_choice == "Bulge":
149
  func = bulge
150
+ elif func_choice == "Shift":
151
  func = lambda x, y: spiral(x, y, frequency=spiral_frequency)
152
 
153
  transformed, (gx, gy) = apply_vector_field_transform(I, func, radius, (center_y, center_x), strength, edge_smoothness)