marquesafonso commited on
Commit
0847d61
·
1 Parent(s): 3c6e66c

make file_type radio invisible 3

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -8,7 +8,8 @@ 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(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,7 +25,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(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",
 
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
+ print(file_type)
13
  max_words_per_line = gr.Number(value=6, label="Max words per line")
14
  task = gr.Radio(choices=["transcribe", "translate"], value="transcribe", label="Select Task")
15
  model_version = gr.Radio(choices=["deepdml/faster-whisper-large-v3-turbo-ct2",
 
25
 
26
  with gr.Tab("Audio", id = "audio"):
27
  file = gr.File(file_types=["audio"],type="filepath", label="Upload an audio file")
28
+ file_type = gr.Radio(choices=["audio"], value="audio", label="File Type", visible=False)
29
  max_words_per_line = gr.Number(value=6, label="Max words per line")
30
  task = gr.Radio(choices=["transcribe", "translate"], value="transcribe", label="Select Task")
31
  model_version = gr.Radio(choices=["deepdml/faster-whisper-large-v3-turbo-ct2",