Spaces:
Sleeping
Sleeping
Commit
•
165b975
1
Parent(s):
dab252e
Update app.py
Browse files
app.py
CHANGED
@@ -20,7 +20,7 @@ if not torch.cuda.is_available():
|
|
20 |
DESCRIPTION += "\n<p>Running on CPU 🥶</p>"
|
21 |
|
22 |
MAX_SEED = np.iinfo(np.int32).max
|
23 |
-
CACHE_EXAMPLES = torch.cuda.is_available() and os.getenv("CACHE_EXAMPLES")
|
24 |
MAX_IMAGE_SIZE = int(os.getenv("MAX_IMAGE_SIZE", "1536"))
|
25 |
USE_TORCH_COMPILE = False
|
26 |
ENABLE_CPU_OFFLOAD = os.getenv("ENABLE_CPU_OFFLOAD") == "1"
|
@@ -142,6 +142,7 @@ def generate(
|
|
142 |
examples = [
|
143 |
"Astronaut in a jungle, cold color palette, muted colors, detailed, 8k",
|
144 |
"An astronaut riding a green horse",
|
|
|
145 |
]
|
146 |
|
147 |
with gr.Blocks() as demo:
|
|
|
20 |
DESCRIPTION += "\n<p>Running on CPU 🥶</p>"
|
21 |
|
22 |
MAX_SEED = np.iinfo(np.int32).max
|
23 |
+
CACHE_EXAMPLES = torch.cuda.is_available() and os.getenv("CACHE_EXAMPLES") != "0"
|
24 |
MAX_IMAGE_SIZE = int(os.getenv("MAX_IMAGE_SIZE", "1536"))
|
25 |
USE_TORCH_COMPILE = False
|
26 |
ENABLE_CPU_OFFLOAD = os.getenv("ENABLE_CPU_OFFLOAD") == "1"
|
|
|
142 |
examples = [
|
143 |
"Astronaut in a jungle, cold color palette, muted colors, detailed, 8k",
|
144 |
"An astronaut riding a green horse",
|
145 |
+
"A mecha robot in a favela by Tarsila do Amaral"
|
146 |
]
|
147 |
|
148 |
with gr.Blocks() as demo:
|