Spaces:
Configuration error
Configuration error
machinelearnear
commited on
Commit
•
89b2112
1
Parent(s):
b909347
Update app.py
Browse files
app.py
CHANGED
@@ -17,8 +17,8 @@ from diffusers import StableDiffusionPipeline
|
|
17 |
from huggingface_hub import snapshot_download
|
18 |
|
19 |
|
20 |
-
is_spaces =
|
21 |
-
is_shared_ui =
|
22 |
is_gpu_associated = torch.cuda.is_available()
|
23 |
|
24 |
css = '''
|
|
|
17 |
from huggingface_hub import snapshot_download
|
18 |
|
19 |
|
20 |
+
is_spaces = False if "SPACE_ID" in os.environ else False # local
|
21 |
+
is_shared_ui = False if "IS_SHARED_UI" in os.environ else False # local
|
22 |
is_gpu_associated = torch.cuda.is_available()
|
23 |
|
24 |
css = '''
|