marquesafonso commited on
Commit
3c6e66c
·
1 Parent(s): 5be3bc1

make file_type radio invisible 2

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -8,7 +8,7 @@ def main():
8
  with gr.Tabs(selected="video") as tabs:
9
  with gr.Tab("Video", id="video"):
10
  file = gr.File(file_types=["video"],type="filepath", label="Upload a video")
11
- file_type = gr.Radio(choices=["video"], value="video", label="File Type", visible=False)
12
  max_words_per_line = gr.Number(value=6, label="Max words per line")
13
  task = gr.Radio(choices=["transcribe", "translate"], value="transcribe", label="Select Task")
14
  model_version = gr.Radio(choices=["deepdml/faster-whisper-large-v3-turbo-ct2",
@@ -24,7 +24,7 @@ def main():
24
 
25
  with gr.Tab("Audio", id = "audio"):
26
  file = gr.File(file_types=["audio"],type="filepath", label="Upload an audio file")
27
- file_type = gr.Radio(choices=["audio"], value="audio", label="File Type", visible=False)
28
  max_words_per_line = gr.Number(value=6, label="Max words per line")
29
  task = gr.Radio(choices=["transcribe", "translate"], value="transcribe", label="Select Task")
30
  model_version = gr.Radio(choices=["deepdml/faster-whisper-large-v3-turbo-ct2",
 
8
  with gr.Tabs(selected="video") as tabs:
9
  with gr.Tab("Video", id="video"):
10
  file = gr.File(file_types=["video"],type="filepath", label="Upload a video")
11
+ file_type = gr.Radio(value="video", choices=["video"], value="video", label="File Type", visible=False)
12
  max_words_per_line = gr.Number(value=6, label="Max words per line")
13
  task = gr.Radio(choices=["transcribe", "translate"], value="transcribe", label="Select Task")
14
  model_version = gr.Radio(choices=["deepdml/faster-whisper-large-v3-turbo-ct2",
 
24
 
25
  with gr.Tab("Audio", id = "audio"):
26
  file = gr.File(file_types=["audio"],type="filepath", label="Upload an audio file")
27
+ file_type = gr.Radio(value="audio", choices=["audio"], value="audio", label="File Type", visible=False)
28
  max_words_per_line = gr.Number(value=6, label="Max words per line")
29
  task = gr.Radio(choices=["transcribe", "translate"], value="transcribe", label="Select Task")
30
  model_version = gr.Radio(choices=["deepdml/faster-whisper-large-v3-turbo-ct2",