LAP-DEV commited on
Commit
cf29dd0
·
verified ·
1 Parent(s): 8d330a9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -3
app.py CHANGED
@@ -109,9 +109,9 @@ class App:
109
  cb_translate_output = gr.Checkbox(value=translation_params["translate_output"], label="Translate to selected language", info="Translate using Facebook's NLLB",interactive=True)
110
 
111
  with gr.Row():
112
- with gr.Column():
113
  dd_file_format = gr.Dropdown(choices=["CSV","SRT","TXT"], value="CSV", label="Output format", multiselect=True, interactive=True, visible=True)
114
- with gr.Column():
115
  cb_timestamp_preview = gr.Checkbox(value=whisper_params["add_timestamp_preview"],label="Show preview with timestamps", interactive=True)
116
  cb_timestamp_file = gr.Checkbox(value=whisper_params["add_timestamp_file"], label="Add timestamp to filenames", interactive=True)
117
 
@@ -303,7 +303,10 @@ class App:
303
  with gr.Column():
304
  #input_file = gr.Files(type="filepath", label="Upload File here")
305
  #input_file = gr.File(type="filepath", label="Upload audio/video file here")
306
- input_file = gr.Audio(type='filepath', elem_id="audio_input", show_download_button=True)
 
 
 
307
  tb_input_folder = gr.Textbox(label="Input Folder Path (Optional)",
308
  info="Optional: Specify the folder path where the input files are located, if you prefer to use local files instead of uploading them."
309
  " Leave this field empty if you do not wish to use a local path.",
 
109
  cb_translate_output = gr.Checkbox(value=translation_params["translate_output"], label="Translate to selected language", info="Translate using Facebook's NLLB",interactive=True)
110
 
111
  with gr.Row():
112
+ with gr.Column(scale=2):
113
  dd_file_format = gr.Dropdown(choices=["CSV","SRT","TXT"], value="CSV", label="Output format", multiselect=True, interactive=True, visible=True)
114
+ with gr.Column(scale=2):
115
  cb_timestamp_preview = gr.Checkbox(value=whisper_params["add_timestamp_preview"],label="Show preview with timestamps", interactive=True)
116
  cb_timestamp_file = gr.Checkbox(value=whisper_params["add_timestamp_file"], label="Add timestamp to filenames", interactive=True)
117
 
 
303
  with gr.Column():
304
  #input_file = gr.Files(type="filepath", label="Upload File here")
305
  #input_file = gr.File(type="filepath", label="Upload audio/video file here")
306
+
307
+ #input_file = gr.Audio(type='filepath', elem_id="audio_input", show_download_button=True)
308
+ input_file = gr.File(label="Upload audio/video file here", elem_id="audio_input", type='filepath', file-count="multiple", file_types=["audio","video"], show_download_button=True)
309
+
310
  tb_input_folder = gr.Textbox(label="Input Folder Path (Optional)",
311
  info="Optional: Specify the folder path where the input files are located, if you prefer to use local files instead of uploading them."
312
  " Leave this field empty if you do not wish to use a local path.",