Sean Carnahan commited on
Commit
1a0875b
·
1 Parent(s): 8e844fb

Fix MoveNet output URL to return correct video path for frontend

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -258,7 +258,8 @@ def process_video_movenet(video_path):
258
  out.release()
259
 
260
  print(f"[DEBUG] Processed {processed_frames} frames out of {total_frames} total frames")
261
- return output_filename
 
262
 
263
  except Exception as e:
264
  print(f"[ERROR] Error in process_video_movenet: {str(e)}")
 
258
  out.release()
259
 
260
  print(f"[DEBUG] Processed {processed_frames} frames out of {total_frames} total frames")
261
+ # Return the correct URL for the output video
262
+ return url_for('serve_video', filename=output_filename, _external=False)
263
 
264
  except Exception as e:
265
  print(f"[ERROR] Error in process_video_movenet: {str(e)}")