Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
Signed-off-by: Raphael Glon <[email protected]>
  • Loading branch information
oOraph committed Nov 29, 2023
1 parent 05cbc84 commit 6d13397
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions docker_images/diffusers/app/validation.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import re

STR_TO_BOOL = re.compile(r'^\s*true|yes|1\s*$', re.IGNORECASE)
STR_TO_BOOL = re.compile(r"^\s*true|yes|1\s*$", re.IGNORECASE)


def str_to_bool(s):
return STR_TO_BOOL.match(str(s))

0 comments on commit 6d13397

Please sign in to comment.