qubvel-hf HF staff commited on
Commit
49edc1b
1 Parent(s): e5babce

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -248,7 +248,7 @@ def update_augmented_images(image, code):
248
  try:
249
  augmentation = eval(code)
250
  except ValidationError as e:
251
- gr.Error(str(e))
252
 
253
  track_event("transform_applied", properties={"transform_name": augmentation.__class__.__name__, "code": code})
254
 
 
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})
254