Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -20,7 +20,7 @@ device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|
|
20 |
|
21 |
class_mapping = {'tb': 0, 'healthy': 1, 'sick_but_no_tb': 2}
|
22 |
reverse_mapping = {v: k for k, v in class_mapping.items()}
|
23 |
-
labels = class_mapping.keys()
|
24 |
|
25 |
def load_model():
|
26 |
# config = read_params(config_path)
|
|
|
20 |
|
21 |
class_mapping = {'tb': 0, 'healthy': 1, 'sick_but_no_tb': 2}
|
22 |
reverse_mapping = {v: k for k, v in class_mapping.items()}
|
23 |
+
labels = list(class_mapping.keys())
|
24 |
|
25 |
def load_model():
|
26 |
# config = read_params(config_path)
|