Spaces:
Sleeping
Sleeping
Jensen-holm
commited on
Commit
·
fd4ce9c
1
Parent(s):
9284f4a
render did not seem to like my type hints in the logs
Browse files- Dockerfile +0 -1
- neural_network/neural_network.py +2 -2
Dockerfile
CHANGED
@@ -15,4 +15,3 @@ EXPOSE 80
|
|
15 |
|
16 |
# Run the Gunicorn server with 4 worker processes
|
17 |
CMD ["gunicorn", "--bind", "0.0.0.0:80", "--workers", "4", "app:app"]
|
18 |
-
|
|
|
15 |
|
16 |
# Run the Gunicorn server with 4 worker processes
|
17 |
CMD ["gunicorn", "--bind", "0.0.0.0:80", "--workers", "4", "app:app"]
|
|
neural_network/neural_network.py
CHANGED
@@ -36,10 +36,10 @@ class NeuralNetwork:
|
|
36 |
return func(np.dot(arr, w) + b)
|
37 |
|
38 |
@classmethod
|
39 |
-
def from_dict(cls, dct)
|
40 |
return cls(**dct)
|
41 |
|
42 |
-
def to_dict(self) -> dict
|
43 |
return {
|
44 |
"w1": self.w1.tolist(),
|
45 |
"w2": self.w2.tolist(),
|
|
|
36 |
return func(np.dot(arr, w) + b)
|
37 |
|
38 |
@classmethod
|
39 |
+
def from_dict(cls, dct):
|
40 |
return cls(**dct)
|
41 |
|
42 |
+
def to_dict(self) -> dict:
|
43 |
return {
|
44 |
"w1": self.w1.tolist(),
|
45 |
"w2": self.w2.tolist(),
|