diff --git a/cena/settings.py b/cena/settings.py index 8771090..bb4f248 100644 --- a/cena/settings.py +++ b/cena/settings.py @@ -3,8 +3,12 @@ ENVIRONMENT = 'dev' # ENVIRONMENT = 'nah dude' DEV = ENVIRONMENT == 'dev' + YOLO_MODE = True -ANNOTATE_FRAME = False +# YOLO_MODE = False + +ANNOTATE_FRAME = True +# ANNOTATE_FRAME = False API_SERVER_NAME = 'face-api' diff --git a/cena/utils.py b/cena/utils.py index 841602b..41dc375 100644 --- a/cena/utils.py +++ b/cena/utils.py @@ -50,7 +50,7 @@ def get_api_server_ip_address(): instance_ip = instance.public_ip_address else: instance_ip = instance.public_ip_address - print(f'instance already running at {instance_ip}') + print('instance already running at {}'.format(instance_ip)) # start_if_not_started(instance) # instance_ip = instance.public_ip_address @@ -62,14 +62,14 @@ def start_if_not_started(instance): start_instance(instance) else: instance_ip = instance.public_ip_address - print(f'instance already running at {instance_ip}') + print('instance already running at {}'.format(instance_ip)) def start_instance(instance): - print(f'Starting instance {instance}...') + print('Starting instance {}...'.format(instance)) response = instance.start() instance.wait_until_running() - print(f'Instance started at {instance.public_ip_address}') + print('Instance started at {}'.format(instance.public_ip_address)) # # class EC2Manager(object):