oceansweep commited on
Commit
644334d
·
verified ·
1 Parent(s): 169c4ff

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -0
app.py CHANGED
@@ -1445,6 +1445,9 @@ if __name__ == "__main__":
1445
  logging.debug("ffmpeg check being performed...")
1446
  check_ffmpeg()
1447
 
 
 
 
1448
  try:
1449
  results = main(args.input_path, api_name=args.api_name, api_key=args.api_key, num_speakers=args.num_speakers, whisper_model=args.whisper_model, offset=args.offset, vad_filter=args.vad_filter, download_video_flag=args.video)
1450
  logging.info('Transcription process completed.')
 
1445
  logging.debug("ffmpeg check being performed...")
1446
  check_ffmpeg()
1447
 
1448
+ # Hey, we're in HuggingFace
1449
+ launch_ui(demo_mode=args.demo_mode)
1450
+
1451
  try:
1452
  results = main(args.input_path, api_name=args.api_name, api_key=args.api_key, num_speakers=args.num_speakers, whisper_model=args.whisper_model, offset=args.offset, vad_filter=args.vad_filter, download_video_flag=args.video)
1453
  logging.info('Transcription process completed.')