Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -10,7 +10,7 @@ if not torch.cuda.is_available():
|
|
10 |
DESCRIPTION += "\n<p>你现在运行在CPU上 但是此项目只支持GPU.</p>"
|
11 |
|
12 |
MAX_SEED = np.iinfo(np.int32).max
|
13 |
-
CACHE_EXAMPLES = torch.cuda.is_available() and
|
14 |
MAX_IMAGE_SIZE = 4096
|
15 |
|
16 |
if torch.cuda.is_available():
|
|
|
10 |
DESCRIPTION += "\n<p>你现在运行在CPU上 但是此项目只支持GPU.</p>"
|
11 |
|
12 |
MAX_SEED = np.iinfo(np.int32).max
|
13 |
+
CACHE_EXAMPLES = torch.cuda.is_available() and CACHE_EXAMPLES == "1"
|
14 |
MAX_IMAGE_SIZE = 4096
|
15 |
|
16 |
if torch.cuda.is_available():
|