update the env variable

This commit is contained in:
Ömer Faruk Özdemir 2022-02-25 18:37:03 +03:00
parent d8e0559f08
commit c83bf165eb

View File

@ -282,7 +282,7 @@ class Interface:
self.thumbnail = thumbnail
theme = theme if theme is not None else os.getenv("GRADIO_THEME", "default")
self.is_space = True if os.getenv("GRADIO_THEME") == "huggingface" else False
self.is_space = True if os.getenv("SYSTEM") == "spaces" else False
DEPRECATED_THEME_MAP = {
"darkdefault": "default",
"darkhuggingface": "dark-huggingface",