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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -7
app.py CHANGED
@@ -296,16 +296,19 @@ class VideoClassifier:
296
 
297
 
298
  if __name__ == "__main__":
299
- parser = argparse.ArgumentParser(description='Process some videos.')
300
- parser.add_argument("video_path", nargs='?', default=None, help="Path to the video file")
301
- parser.add_argument("-n", "--no_of_frames", type=int, default=8, help="Number of frames for image captioning")
302
- parser.add_argument("--mode", choices=['interface', 'inference'], default='interface', help="Mode of operation: interface or inference")
303
-
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:
 
296
 
297
 
298
  if __name__ == "__main__":
 
 
 
 
 
 
299
 
300
+ vc = VideoClassifier(no_of_frames=3, mode=interface)
301
  vc.launch_interface()
302
 
303
+ # parser = argparse.ArgumentParser(description='Process some videos.')
304
+ # parser.add_argument("video_path", nargs='?', default=None, help="Path to the video file")
305
+ # parser.add_argument("-n", "--no_of_frames", type=int, default=8, help="Number of frames for image captioning")
306
+ # parser.add_argument("--mode", choices=['interface', 'inference'], default='interface', help="Mode of operation: interface or inference")
307
+
308
+ # args = parser.parse_args()
309
+
310
+
311
+ # vc = VideoClassifier(no_of_frames=args.no_of_frames, mode=args.mode)
312
  # if args.mode == 'interface':
313
  # vc.launch_interface()
314
  # elif args.mode == 'inference' and args.video_path: