Spaces:
Build error
Build error
nick-leland
commited on
Commit
·
c9e7f8b
1
Parent(s):
ff36ed6
Fixed the naming convention
Browse files
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 == "
|
147 |
func = shift
|
148 |
elif func_choice == "Bulge":
|
149 |
func = bulge
|
150 |
-
elif func_choice == "
|
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)
|