LAP-DEV commited on
Commit
1042c77
·
verified ·
1 Parent(s): bd02f4b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -2
app.py CHANGED
@@ -264,13 +264,18 @@ class App:
264
  with gr.Column():
265
  #input_file = gr.Files(type="filepath", label="Upload File here")
266
  #input_file = gr.File(type="filepath", label="Upload audio/video file here")
267
- input_file = gr.Audio(type='filepath', elem_id="audio_input")
268
  tb_input_folder = gr.Textbox(label="Input Folder Path (Optional)",
269
  info="Optional: Specify the folder path where the input files are located, if you prefer to use local files instead of uploading them."
270
  " Leave this field empty if you do not wish to use a local path.",
271
  visible=self.args.colab,
272
  value="")
273
-
 
 
 
 
 
274
  whisper_params, dd_file_format, cb_timestamp = self.create_whisper_parameters()
275
 
276
  with gr.Row():
 
264
  with gr.Column():
265
  #input_file = gr.Files(type="filepath", label="Upload File here")
266
  #input_file = gr.File(type="filepath", label="Upload audio/video file here")
267
+ #input_file = gr.Audio(type='filepath', elem_id="audio_input")
268
  tb_input_folder = gr.Textbox(label="Input Folder Path (Optional)",
269
  info="Optional: Specify the folder path where the input files are located, if you prefer to use local files instead of uploading them."
270
  " Leave this field empty if you do not wish to use a local path.",
271
  visible=self.args.colab,
272
  value="")
273
+ with gr.Tabs():
274
+ with gr.TabItem("Audio upload/microphone"):
275
+ input_file = gr.Audio(type='filepath', elem_id="audio_input")
276
+ with gr.TabItem("Video upload/webcam"):
277
+ input_file_video = gr.Vidoe(type='filepath', elem_id="video_input")
278
+
279
  whisper_params, dd_file_format, cb_timestamp = self.create_whisper_parameters()
280
 
281
  with gr.Row():