Linoy Tsaban commited on
Commit
61507ea
1 Parent(s): 98c6b44

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -117,7 +117,7 @@ def edit(input_image,
117
  if warm_up:
118
  digit_pattern = re.compile(r"^\d+$")
119
  warm_up_steps_str = warm_up.split(",")
120
- for i,num_steps in enumerate(warm_up_steps[:num_concepts]):
121
  if not digit_pattern.match(num_steps):
122
  raise gr.Error("Invalid value for warm-up steps, using 1 instead")
123
  else:
 
117
  if warm_up:
118
  digit_pattern = re.compile(r"^\d+$")
119
  warm_up_steps_str = warm_up.split(",")
120
+ for i,num_steps in enumerate(warm_up_steps_str[:num_concepts]):
121
  if not digit_pattern.match(num_steps):
122
  raise gr.Error("Invalid value for warm-up steps, using 1 instead")
123
  else: