mirror of
https://github.com/gradio-app/gradio.git
synced 2025-01-06 10:25:17 +08:00
update the env variable
This commit is contained in:
parent
d8e0559f08
commit
c83bf165eb
@ -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",
|
||||
|
Loading…
Reference in New Issue
Block a user