Spaces:
Sleeping
Sleeping
Fix syntax error
Browse files- chatbot_constructor.py +1 -1
chatbot_constructor.py
CHANGED
@@ -17,7 +17,7 @@ os.mkdir("cache")
|
|
17 |
class ValueConstraint(Constraint):
|
18 |
def __init__(self, min_value: float = -1, max_value: float = 1):
|
19 |
self.min_value = min_value
|
20 |
-
self.max_value
|
21 |
|
22 |
def __call__(self, w):
|
23 |
return K.clip(w, self.min_value, self.max_value)
|
|
|
17 |
class ValueConstraint(Constraint):
|
18 |
def __init__(self, min_value: float = -1, max_value: float = 1):
|
19 |
self.min_value = min_value
|
20 |
+
self.max_value = max_value
|
21 |
|
22 |
def __call__(self, w):
|
23 |
return K.clip(w, self.min_value, self.max_value)
|