diff --git a/paddlehub/utils/platform.py b/paddlehub/utils/platform.py index 49b215433a2fb5444f44eba5dff1f53a452671f3..2a77cd6b0acc05c330805e07ee1a8abe304d0b14 100644 --- a/paddlehub/utils/platform.py +++ b/paddlehub/utils/platform.py @@ -21,7 +21,7 @@ def get_platform() -> str: return platform.platform() -def is_windows() -> str: +def is_windows() -> bool: return get_platform().lower().startswith("windows")