LAP-DEV commited on
Commit
b6a1d18
·
verified ·
1 Parent(s): cbe4b90

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -96,10 +96,6 @@ class App:
96
  nllb_params = translation_params["nllb"]
97
 
98
  with gr.Row():
99
- with gr.Column(scale=4):
100
- input_file_audio = gr.Audio(type='filepath', elem_id="audio_input", show_download_button=True, visible=True, interactive=True)
101
- input_file_video = gr.Video(elem_id="video_input", show_download_button=True, visible=False, interactive=True)
102
- input_file_multi = gr.Files(label="Upload one or more audio/video files here", elem_id="multi_input", type='filepath', file_count="multiple", allow_reordering=True, file_types=["audio","video"], visible=False, interactive=True)
103
  with gr.Column(scale=1):
104
  with gr.Row():
105
  input_multi = gr.Radio(["Audio", "Video", "Multiple"], label="Process one or multiple files", value="Audio")
@@ -107,6 +103,10 @@ class App:
107
  with gr.Row():
108
  cb_timestamp_preview = gr.Checkbox(value=whisper_params["add_timestamp_preview"],label="Add timestamp to preview", interactive=True)
109
  cb_timestamp_file = gr.Checkbox(value=whisper_params["add_timestamp_file"], label="Add timestamp to output", interactive=True)
 
 
 
 
110
 
111
  with gr.Row():
112
  with gr.Column(scale=4):
 
96
  nllb_params = translation_params["nllb"]
97
 
98
  with gr.Row():
 
 
 
 
99
  with gr.Column(scale=1):
100
  with gr.Row():
101
  input_multi = gr.Radio(["Audio", "Video", "Multiple"], label="Process one or multiple files", value="Audio")
 
103
  with gr.Row():
104
  cb_timestamp_preview = gr.Checkbox(value=whisper_params["add_timestamp_preview"],label="Add timestamp to preview", interactive=True)
105
  cb_timestamp_file = gr.Checkbox(value=whisper_params["add_timestamp_file"], label="Add timestamp to output", interactive=True)
106
+ with gr.Column(scale=4):
107
+ input_file_audio = gr.Audio(type='filepath', elem_id="audio_input", show_download_button=True, visible=True, interactive=True)
108
+ input_file_video = gr.Video(elem_id="video_input", show_download_button=True, visible=False, interactive=True)
109
+ input_file_multi = gr.Files(label="Upload one or more audio/video files here", elem_id="multi_input", type='filepath', file_count="multiple", allow_reordering=True, file_types=["audio","video"], visible=False, interactive=True)
110
 
111
  with gr.Row():
112
  with gr.Column(scale=4):