Update generate-cot.py
Browse files- generate-cot.py +2 -2
generate-cot.py
CHANGED
|
@@ -27,9 +27,9 @@ def generate_time_description(clock_data, should_use_12=True):
|
|
| 27 |
|
| 28 |
clock_params = clock_data['clock_params']
|
| 29 |
clock_coordinates = clock_data['clock_coordinates']
|
|
|
|
|
|
|
| 30 |
time_str = clock_params['time']
|
| 31 |
-
if should_use_12 and time_str.startswith('00'):
|
| 32 |
-
time_str = '12' + time_str[2:]
|
| 33 |
is_unreadable = clock_params.get('isUnreadable', False)
|
| 34 |
hours_format = clock_params.get('hours_format', 'unknown')
|
| 35 |
hours_to_generate = clock_params.get('hours_to_generate', [])
|
|
|
|
| 27 |
|
| 28 |
clock_params = clock_data['clock_params']
|
| 29 |
clock_coordinates = clock_data['clock_coordinates']
|
| 30 |
+
if should_use_12 and clock_params['time'].startswith('00'):
|
| 31 |
+
clock_params['time'] = '12' + clock_params['time'][2:]
|
| 32 |
time_str = clock_params['time']
|
|
|
|
|
|
|
| 33 |
is_unreadable = clock_params.get('isUnreadable', False)
|
| 34 |
hours_format = clock_params.get('hours_format', 'unknown')
|
| 35 |
hours_to_generate = clock_params.get('hours_to_generate', [])
|