aiface commited on
Commit
f36cf8e
1 Parent(s): 3e69f0d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -143,6 +143,7 @@ def preprocess_video(input_video_path):
143
  def predict(process_video):
144
  os.chdir('/home/user/app')
145
  os.system('bash TestVisual.sh')
 
146
  with open("/home/user/app/result/ho.txt", 'r') as f:
147
  pred = f.readlines(prediction)
148
  return pred[-1]
 
143
  def predict(process_video):
144
  os.chdir('/home/user/app')
145
  os.system('bash TestVisual.sh')
146
+ pred=[]
147
  with open("/home/user/app/result/ho.txt", 'r') as f:
148
  pred = f.readlines(prediction)
149
  return pred[-1]