Spaces:
Running
on
Zero
Running
on
Zero
enable zerogpu
Browse files
app.py
CHANGED
@@ -37,10 +37,10 @@ def set_seed(seed):
|
|
37 |
torch.cuda.manual_seed_all(seed)
|
38 |
random.seed(seed)
|
39 |
|
40 |
-
if torch.cuda.is_available():
|
41 |
-
|
42 |
-
else:
|
43 |
-
device = "cpu"
|
44 |
|
45 |
def remove_prefix(text, prefix):
|
46 |
if text.startswith(prefix):
|
|
|
37 |
torch.cuda.manual_seed_all(seed)
|
38 |
random.seed(seed)
|
39 |
|
40 |
+
# if torch.cuda.is_available():
|
41 |
+
device = "cuda"
|
42 |
+
# else:
|
43 |
+
# device = "cpu"
|
44 |
|
45 |
def remove_prefix(text, prefix):
|
46 |
if text.startswith(prefix):
|