arjunanand13 commited on
Commit
c301599
·
verified ·
1 Parent(s): 2a1d4cb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -6
app.py CHANGED
@@ -304,13 +304,14 @@ if __name__ == "__main__":
304
  args = parser.parse_args()
305
 
306
  vc = VideoClassifier(no_of_frames=args.no_of_frames, mode=args.mode)
 
307
 
308
- if args.mode == 'interface':
309
- vc.launch_interface()
310
- elif args.mode == 'inference' and args.video_path:
311
- vc.run_inference(args.video_path)
312
- else:
313
- print("Error: No video path provided for inference mode.")
314
 
315
  ### python main.py --mode interface
316
  ### python main.py videos/Spirituality_1_clip.mp4 -n 3 --mode inference
 
304
  args = parser.parse_args()
305
 
306
  vc = VideoClassifier(no_of_frames=args.no_of_frames, mode=args.mode)
307
+ vc.launch_interface()
308
 
309
+ # if args.mode == 'interface':
310
+ # vc.launch_interface()
311
+ # elif args.mode == 'inference' and args.video_path:
312
+ # vc.run_inference(args.video_path)
313
+ # else:
314
+ # print("Error: No video path provided for inference mode.")
315
 
316
  ### python main.py --mode interface
317
  ### python main.py videos/Spirituality_1_clip.mp4 -n 3 --mode inference