qubvel-hf HF staff commited on
Commit
1f9c70e
1 Parent(s): b37a638

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -0
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