mirror of
https://github.com/iperov/DeepFaceLab.git
synced 2025-07-07 13:32:09 -07:00
fix
This commit is contained in:
parent
c9da4cd89b
commit
ab8d03b4bb
1 changed files with 7 additions and 1 deletions
|
@ -244,9 +244,15 @@ class InteractBase(object):
|
|||
print (help_message)
|
||||
continue
|
||||
|
||||
if (valid_list is not None) and (inp.lower() not in valid_list):
|
||||
if valid_list is not None:
|
||||
if inp.lower() in valid_list:
|
||||
return inp.lower()
|
||||
if inp in valid_list:
|
||||
return inp
|
||||
return default_value
|
||||
|
||||
return inp
|
||||
|
||||
except:
|
||||
print (default_value)
|
||||
return default_value
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue