Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -20,8 +20,8 @@ You can try out the prompts and check for yourself.
|
|
20 |
|
21 |
You can check out more of my spaces. Demo by [Sunder Ali Khowaja](https://sander-ali.github.io) - [Github](https://github.com/sander-ali)
|
22 |
"""
|
23 |
-
|
24 |
-
|
25 |
|
26 |
MAX_SEED = np.iinfo(np.int32).max
|
27 |
CACHE_EXAMPLES = torch.cuda.is_available() and os.getenv("CACHE_EXAMPLES", "0") == "1"
|
|
|
20 |
|
21 |
You can check out more of my spaces. Demo by [Sunder Ali Khowaja](https://sander-ali.github.io) - [Github](https://github.com/sander-ali)
|
22 |
"""
|
23 |
+
if not torch.cuda.is_available():
|
24 |
+
MARKDOWN += "\n<h1>Running on CPU 🥶 This demo does not work on CPU. </h1>"
|
25 |
|
26 |
MAX_SEED = np.iinfo(np.int32).max
|
27 |
CACHE_EXAMPLES = torch.cuda.is_available() and os.getenv("CACHE_EXAMPLES", "0") == "1"
|