Spaces:
Runtime error
Runtime error
commit from
Browse files
app.py
CHANGED
@@ -50,10 +50,10 @@ def load_model():
|
|
50 |
return model
|
51 |
|
52 |
def sigmoid(x):
|
53 |
-
return 1/(1 + np.exp(-x))
|
54 |
|
55 |
def get_top_predictions(predictions):
|
56 |
-
probs =
|
57 |
probs = probs / np.sum(probs)
|
58 |
|
59 |
res = {}
|
|
|
50 |
return model
|
51 |
|
52 |
def sigmoid(x):
|
53 |
+
return 1 / (1 + np.exp(-x))
|
54 |
|
55 |
def get_top_predictions(predictions):
|
56 |
+
probs = sigmoid(predictions)
|
57 |
probs = probs / np.sum(probs)
|
58 |
|
59 |
res = {}
|