diff --git a/gradio/utils.py b/gradio/utils.py index bccb877289..0745ee414c 100644 --- a/gradio/utils.py +++ b/gradio/utils.py @@ -469,7 +469,7 @@ def get_space() -> str | None: def is_zero_gpu_space() -> bool: - return os.getenv("SPACES_ZERO_GPU") == "true" + return os.environ.get("SPACES_ZERO_GPU") == "true" def download_if_url(article: str) -> str: