Fixed OpenVINO Docs formatting (#14773)

Signed-off-by: Glenn Jocher <glenn.jocher@ultralytics.com>
Co-authored-by: UltralyticsAssistant <web@ultralytics.com>
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
This commit is contained in:
Francesco Mattioli 2024-07-29 23:57:14 +02:00 committed by GitHub
parent 2ebd01faa8
commit 3b1517f589
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 98 additions and 96 deletions

View file

@ -136,14 +136,14 @@ class GCPRegions:
sorted_results = sorted(results, key=lambda x: x[1])
if verbose:
print(f"{'Region':<20} {'Location':<35} {'Tier':<5} {'Latency (ms)'}")
print(f"{'Region':<25} {'Location':<35} {'Tier':<5} {'Latency (ms)'}")
for region, mean, std, min_, max_ in sorted_results:
tier, city, country = self.regions[region]
location = f"{city}, {country}"
if mean == float("inf"):
print(f"{region:<20} {location:<35} {tier:<5} {'Timeout'}")
print(f"{region:<25} {location:<35} {tier:<5} {'Timeout'}")
else:
print(f"{region:<20} {location:<35} {tier:<5} {mean:.0f} ± {std:.0f} ({min_:.0f} - {max_:.0f})")
print(f"{region:<25} {location:<35} {tier:<5} {mean:.0f} ± {std:.0f} ({min_:.0f} - {max_:.0f})")
print(f"\nLowest latency region{'s' if top > 1 else ''}:")
for region, mean, std, min_, max_ in sorted_results[:top]:
tier, city, country = self.regions[region]