Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -248,6 +248,8 @@ def update_augmented_images(image, code):
|
|
248 |
try:
|
249 |
augmentation = eval(code)
|
250 |
except ValidationError as e:
|
|
|
|
|
251 |
raise gr.Error(str(e))
|
252 |
|
253 |
track_event("transform_applied", properties={"transform_name": augmentation.__class__.__name__, "code": code})
|
|
|
248 |
try:
|
249 |
augmentation = eval(code)
|
250 |
except ValidationError as e:
|
251 |
+
logger.info(code)
|
252 |
+
logger.error(e)
|
253 |
raise gr.Error(str(e))
|
254 |
|
255 |
track_event("transform_applied", properties={"transform_name": augmentation.__class__.__name__, "code": code})
|