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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -2
app.py CHANGED
@@ -141,8 +141,11 @@ def preprocess_video(input_video_path):
141
 
142
 
143
  def predict(process_video):
144
- os.chdir('/home/user/app')
145
- return os.system('bash TestVisual.sh')
 
 
 
146
 
147
 
148
  # ---- Gradio Layout -----
 
141
 
142
 
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]
149
 
150
 
151
  # ---- Gradio Layout -----