in scripts/download_weights.py [0:0]
def prompt():
while True:
valid = {
'y': True,
'ye': True,
'yes': True,
'n': False,
'no': False,
}
choice = input().lower()
if choice in valid:
return valid[choice]
else:
print('Please respond with \'y\' or \'n\' (or \'yes\' or \'no\')')