Omnibus commited on
Commit
3efa602
1 Parent(s): 386e89d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -88,9 +88,8 @@ def sort_doc(text,steps_in=0,control=None):
88
  break
89
  if steps_in:
90
  steps=steps_in
91
-
92
  control_len=control_json['leng']-steps
93
-
94
  control_char_val=list(control_json['control'][:control_len])
95
  control_val=list(control_json['control'][control_len:])
96
  val_len=len(control_val)
 
88
  break
89
  if steps_in:
90
  steps=steps_in
91
+ if control:
92
  control_len=control_json['leng']-steps
 
93
  control_char_val=list(control_json['control'][:control_len])
94
  control_val=list(control_json['control'][control_len:])
95
  val_len=len(control_val)