Commit
·
f5fb53f
1
Parent(s):
9c88742
Fix simple boolean expression
Browse files
app.py
CHANGED
|
@@ -15,12 +15,9 @@ import plotly.graph_objects as go
|
|
| 15 |
import logging
|
| 16 |
import utils
|
| 17 |
|
| 18 |
-
use_cpu = torch.cuda.is_available()
|
| 19 |
device = "cpu" if use_cpu else "cuda"
|
| 20 |
|
| 21 |
-
# Activate tqdm with pandas
|
| 22 |
-
tqdm.pandas()
|
| 23 |
-
|
| 24 |
# Custom file cache decorator
|
| 25 |
def file_cache(file_path):
|
| 26 |
def decorator(func):
|
|
|
|
| 15 |
import logging
|
| 16 |
import utils
|
| 17 |
|
| 18 |
+
use_cpu = not torch.cuda.is_available()
|
| 19 |
device = "cpu" if use_cpu else "cuda"
|
| 20 |
|
|
|
|
|
|
|
|
|
|
| 21 |
# Custom file cache decorator
|
| 22 |
def file_cache(file_path):
|
| 23 |
def decorator(func):
|