This commit is contained in:
Abubakar Abid 2024-10-09 09:31:35 -07:00
parent ca7cd79e7b
commit f57b9850d4

View File

@ -138,7 +138,7 @@ class Examples:
self.cache_examples = False
if cache_examples is None:
if (
os.getenv("GRADIO_CACHE_EXAMPLES", "").lower() == "true"
os.getenv("GRADIO_CACHE_EXAMPLES", "").lower() in ["true", "lazy"]
and fn is not None
and outputs is not None
):