Update app.py
Browse files
app.py
CHANGED
|
@@ -20,9 +20,9 @@ model_path = "dysarthria_classifier12.pth"
|
|
| 20 |
model_path = '/home/user/app/dysarthria_classifier12.pth'
|
| 21 |
model.load_state_dict(torch.load(model_path, map_location=torch.device('cpu')))
|
| 22 |
|
| 23 |
-
if os.path.exists(model_path):
|
| 24 |
-
|
| 25 |
-
|
| 26 |
def predict(file_path):
|
| 27 |
max_length = 100000
|
| 28 |
|
|
|
|
| 20 |
model_path = '/home/user/app/dysarthria_classifier12.pth'
|
| 21 |
model.load_state_dict(torch.load(model_path, map_location=torch.device('cpu')))
|
| 22 |
|
| 23 |
+
# if os.path.exists(model_path):
|
| 24 |
+
# print(f"Loading saved model {model_path}")
|
| 25 |
+
# model.load_state_dict(torch.load(model_path))
|
| 26 |
def predict(file_path):
|
| 27 |
max_length = 100000
|
| 28 |
|