Beasto commited on
Commit
ac7ceb1
·
1 Parent(s): c8c31a5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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