Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -234,6 +234,9 @@ def get_formatted_transform_docs(transform_name):
|
|
234 |
|
235 |
def update_augmented_images(image, code):
|
236 |
|
|
|
|
|
|
|
237 |
augmentation = eval(code)
|
238 |
track_event("transform_applied", properties={"transform_name": augmentation.__class__.__name__, "code": code})
|
239 |
|
|
|
234 |
|
235 |
def update_augmented_images(image, code):
|
236 |
|
237 |
+
if "=," in code:
|
238 |
+
raise gr.Error("You have to fill in some parameters to apply transform!")
|
239 |
+
|
240 |
augmentation = eval(code)
|
241 |
track_event("transform_applied", properties={"transform_name": augmentation.__class__.__name__, "code": code})
|
242 |
|