Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Update app.py
Browse files
app.py
CHANGED
@@ -11,9 +11,6 @@ import spaces
|
|
11 |
import torch
|
12 |
from diffusers import DiffusionPipeline
|
13 |
|
14 |
-
DESCRIPTION = """# Playground v2.5"""
|
15 |
-
if not torch.cuda.is_available():
|
16 |
-
DESCRIPTION += "\n<p>Running on CPU 🥶 This demo may not work on CPU.</p>"
|
17 |
|
18 |
MAX_SEED = np.iinfo(np.int32).max
|
19 |
CACHE_EXAMPLES = torch.cuda.is_available() and os.getenv("CACHE_EXAMPLES", "1") == "1"
|
@@ -103,12 +100,14 @@ examples = [
|
|
103 |
"a close up of a woman wearing a transparent, prismatic, elaborate nemeses headdress, over the should pose, brown skin-tone"
|
104 |
]
|
105 |
|
106 |
-
css =
|
107 |
-
|
108 |
-
|
109 |
-
|
110 |
-
|
111 |
-
|
|
|
|
|
112 |
gr.DuplicateButton(
|
113 |
value="Duplicate Space for private use",
|
114 |
elem_id="duplicate-button",
|
|
|
11 |
import torch
|
12 |
from diffusers import DiffusionPipeline
|
13 |
|
|
|
|
|
|
|
14 |
|
15 |
MAX_SEED = np.iinfo(np.int32).max
|
16 |
CACHE_EXAMPLES = torch.cuda.is_available() and os.getenv("CACHE_EXAMPLES", "1") == "1"
|
|
|
100 |
"a close up of a woman wearing a transparent, prismatic, elaborate nemeses headdress, over the should pose, brown skin-tone"
|
101 |
]
|
102 |
|
103 |
+
css = """
|
104 |
+
footer {
|
105 |
+
visibility: hidden;
|
106 |
+
}
|
107 |
+
"""
|
108 |
+
|
109 |
+
with gr.Blocks(theme="Nymbo/Nymbo_Theme", css=css) as demo:
|
110 |
+
|
111 |
gr.DuplicateButton(
|
112 |
value="Duplicate Space for private use",
|
113 |
elem_id="duplicate-button",
|