Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -128,6 +128,10 @@ def inference():
|
|
128 |
|
129 |
prediction, targets = inference()
|
130 |
prediction = np.array(prediction) >= 0.5
|
|
|
|
|
|
|
|
|
131 |
targets = np.argmax(targets, axis=1)
|
132 |
prediction = np.argmax(prediction, axis=1)
|
133 |
accuracy = metrics.accuracy_score(targets, prediction)
|
|
|
128 |
|
129 |
prediction, targets = inference()
|
130 |
prediction = np.array(prediction) >= 0.5
|
131 |
+
|
132 |
+
st.write(prediction)
|
133 |
+
st.write(targets)
|
134 |
+
|
135 |
targets = np.argmax(targets, axis=1)
|
136 |
prediction = np.argmax(prediction, axis=1)
|
137 |
accuracy = metrics.accuracy_score(targets, prediction)
|