mirror of
https://github.com/gradio-app/gradio.git
synced 2025-01-12 10:34:32 +08:00
Merge pull request #771 from gradio-app/blocks-fix-3
move is_space to launch() to allow blocks to launch()
This commit is contained in:
commit
b28d5dffc5
@ -280,7 +280,6 @@ class Interface(Launchable):
|
||||
|
||||
self.thumbnail = thumbnail
|
||||
theme = theme if theme is not None else os.getenv("GRADIO_THEME", "default")
|
||||
self.is_space = True if os.getenv("SYSTEM") == "spaces" else False
|
||||
DEPRECATED_THEME_MAP = {
|
||||
"darkdefault": "default",
|
||||
"darkhuggingface": "dark-huggingface",
|
||||
|
@ -88,6 +88,7 @@ class Launchable:
|
||||
self.height = height
|
||||
self.width = width
|
||||
self.favicon_path = favicon_path
|
||||
self.is_space = True if os.getenv("SYSTEM") == "spaces" else False
|
||||
|
||||
if hasattr(self, "encrypt") and self.encrypt is None:
|
||||
self.encrypt = encrypt
|
||||
|
Loading…
Reference in New Issue
Block a user