Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -49,7 +49,7 @@ if f is not None:
|
|
| 49 |
st.write(pred)
|
| 50 |
pred = np.argmax(pred)
|
| 51 |
pred = array[pred]
|
| 52 |
-
if out[-1] != pred:
|
| 53 |
out = out + pred
|
| 54 |
|
| 55 |
# Increment the frame counter
|
|
|
|
| 49 |
st.write(pred)
|
| 50 |
pred = np.argmax(pred)
|
| 51 |
pred = array[pred]
|
| 52 |
+
if not out or out[-1] != pred:
|
| 53 |
out = out + pred
|
| 54 |
|
| 55 |
# Increment the frame counter
|