NeuralFalcon commited on
Commit
c013947
·
verified ·
1 Parent(s): a3af440

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -304,6 +304,9 @@ source_lang_list.extend(available_language)
304
  @click.option("--debug", is_flag=True, default=False, help="Enable debug mode.")
305
  @click.option("--share", is_flag=True, default=False, help="Enable sharing of the interface.")
306
  def main(debug, share):
 
 
 
307
  # Define Gradio inputs and outputs
308
  gradio_inputs = [
309
  gr.File(label="Upload Audio or Video File"),
@@ -319,7 +322,7 @@ def main(debug, share):
319
  ]
320
 
321
  # Create Gradio interface
322
- demo = gr.Interface(fn=subtitle_maker, inputs=gradio_inputs, outputs=gradio_outputs, title="Auto Subtitle Generator Using Whisper-Large-V3-Turbo-Ct2")
323
 
324
  # Launch Gradio with command-line options
325
  demo.queue().launch(debug=debug, share=share)
 
304
  @click.option("--debug", is_flag=True, default=False, help="Enable debug mode.")
305
  @click.option("--share", is_flag=True, default=False, help="Enable sharing of the interface.")
306
  def main(debug, share):
307
+ description = """
308
+ **Note**: For large video files, upload audio instead. FFmpeg video-to-audio conversion may take a long time.
309
+ """
310
  # Define Gradio inputs and outputs
311
  gradio_inputs = [
312
  gr.File(label="Upload Audio or Video File"),
 
322
  ]
323
 
324
  # Create Gradio interface
325
+ demo = gr.Interface(fn=subtitle_maker, inputs=gradio_inputs, outputs=gradio_outputs, title="Auto Subtitle Generator Using Whisper-Large-V3-Turbo-Ct2",description=description)
326
 
327
  # Launch Gradio with command-line options
328
  demo.queue().launch(debug=debug, share=share)