Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -14,7 +14,9 @@ import os
|
|
14 |
import matplotlib.pyplot as plt
|
15 |
from matplotlib.colors import ListedColormap
|
16 |
|
17 |
-
|
|
|
|
|
18 |
|
19 |
|
20 |
def compute(df_table):
|
|
|
14 |
import matplotlib.pyplot as plt
|
15 |
from matplotlib.colors import ListedColormap
|
16 |
|
17 |
+
default_device = "cuda:0" if torch.cuda.is_available() else "cpu:0"
|
18 |
+
|
19 |
+
classifier = TabPFNClassifier(base_path=tabpfn_path, device=default_device, N_ensemble_configurations=4)
|
20 |
|
21 |
|
22 |
def compute(df_table):
|