Update app/app.py
Browse files- app/app.py +0 -11
app/app.py
CHANGED
|
@@ -56,17 +56,6 @@ class ModelAPI:
|
|
| 56 |
|
| 57 |
def _prepare(self):
|
| 58 |
|
| 59 |
-
# self.ckpt_path = os.path.join(self.base_path, "dns1680s2.ckpt")
|
| 60 |
-
|
| 61 |
-
# if not os.path.exists(self.ckpt_path):
|
| 62 |
-
# os.makedirs(os.path.dirname(self.ckpt_path), exist_ok=True)
|
| 63 |
-
# from huggingface_hub import hf_hub_download
|
| 64 |
-
|
| 65 |
-
# try:
|
| 66 |
-
# repo_id = "gspeech/the-deaf-people"
|
| 67 |
-
# filename = "dns1712-0307.ckpt"
|
| 68 |
-
# repo_type = "dataset"
|
| 69 |
-
|
| 70 |
|
| 71 |
self.model = ScoreModel.load_from_checkpoint(self.ckpt_path, self.device)
|
| 72 |
self.model.t_eps = 0.03
|
|
|
|
| 56 |
|
| 57 |
def _prepare(self):
|
| 58 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 59 |
|
| 60 |
self.model = ScoreModel.load_from_checkpoint(self.ckpt_path, self.device)
|
| 61 |
self.model.t_eps = 0.03
|