Upload folder using huggingface_hub
Browse files- MLBaseModel.py +1 -1
- MLBaseModelDriver.py +2 -2
- model_files/.DS_Store +0 -0
- model_files/real_estate_model.pth +2 -2
MLBaseModel.py
CHANGED
@@ -14,4 +14,4 @@ class MLBaseModel(nn.Module):
|
|
14 |
x = torch.relu(self.fc2(x))
|
15 |
x = torch.relu(self.fc3(x))
|
16 |
x = self.fc4(x)
|
17 |
-
return x
|
|
|
14 |
x = torch.relu(self.fc2(x))
|
15 |
x = torch.relu(self.fc3(x))
|
16 |
x = self.fc4(x)
|
17 |
+
return x
|
MLBaseModelDriver.py
CHANGED
@@ -61,7 +61,7 @@ class MLBaseModelDriver:
|
|
61 |
model_class = self._import_model_class(model_class_file)
|
62 |
|
63 |
model = model_class(input_dim=4)
|
64 |
-
state_dict = torch.load(model_file,
|
65 |
model.load_state_dict(state_dict)
|
66 |
model.eval()
|
67 |
|
@@ -80,7 +80,7 @@ class MLBaseModelDriver:
|
|
80 |
download files from hugging face
|
81 |
:return: downloaded files
|
82 |
"""
|
83 |
-
model_path = "
|
84 |
|
85 |
# Download the model files from the Hugging Face Hub
|
86 |
model_file = hf_hub_download(repo_id=model_path, filename="model_files/real_estate_model.pth")
|
|
|
61 |
model_class = self._import_model_class(model_class_file)
|
62 |
|
63 |
model = model_class(input_dim=4)
|
64 |
+
state_dict = torch.load(model_file, weights_only=False)
|
65 |
model.load_state_dict(state_dict)
|
66 |
model.eval()
|
67 |
|
|
|
80 |
download files from hugging face
|
81 |
:return: downloaded files
|
82 |
"""
|
83 |
+
model_path = "Nickel5HF/NextPlace"
|
84 |
|
85 |
# Download the model files from the Hugging Face Hub
|
86 |
model_file = hf_hub_download(repo_id=model_path, filename="model_files/real_estate_model.pth")
|
model_files/.DS_Store
ADDED
Binary file (6.15 kB). View file
|
|
model_files/real_estate_model.pth
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:c67cd8a4b692510c9e21889f6a5d0fcae0d5a9d7995c0629cdc3fa08fbb2c61f
|
3 |
+
size 2152506
|