aadnk commited on
Commit
724f5fc
1 Parent(s): 31f7bdb

Use DEFAULT_INPUT_AUDIO_MAX_DURATION

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -293,7 +293,7 @@ def create_ui(input_audio_max_duration, share=False, server_name: str = None, se
293
 
294
  if __name__ == '__main__':
295
  parser = argparse.ArgumentParser(formatter_class=argparse.ArgumentDefaultsHelpFormatter)
296
- parser.add_argument("--input_audio_max_duration", type=int, default=600, help="Maximum audio file length in seconds, or -1 for no limit.")
297
  parser.add_argument("--share", type=bool, default=False, help="True to share the app on HuggingFace.")
298
  parser.add_argument("--server_name", type=str, default=None, help="The host or IP to bind to. If None, bind to localhost.")
299
  parser.add_argument("--server_port", type=int, default=7860, help="The port to bind to.")
 
293
 
294
  if __name__ == '__main__':
295
  parser = argparse.ArgumentParser(formatter_class=argparse.ArgumentDefaultsHelpFormatter)
296
+ parser.add_argument("--input_audio_max_duration", type=int, default=DEFAULT_INPUT_AUDIO_MAX_DURATION, help="Maximum audio file length in seconds, or -1 for no limit.")
297
  parser.add_argument("--share", type=bool, default=False, help="True to share the app on HuggingFace.")
298
  parser.add_argument("--server_name", type=str, default=None, help="The host or IP to bind to. If None, bind to localhost.")
299
  parser.add_argument("--server_port", type=int, default=7860, help="The port to bind to.")