reedmayhew commited on
Commit
be23bee
·
verified ·
1 Parent(s): 97bdbba

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -10
app.py CHANGED
@@ -163,20 +163,20 @@ with gr.Blocks(title="Insanely Fast Whisper") as demo:
163
  description=description,
164
  article=article,
165
  inputs=[
166
- gr.Dropdown(choices=whisper_models, value="distil-whisper/distil-large-v2",
167
  label="Model", info="Select whisper model", interactive=True, ),
168
- gr.Dropdown(choices=["Automatic Detection"] + sorted(get_language_names()),
169
- value="Automatic Detection", label="Language",
170
- info="Select audio voice language", interactive=True, ),
171
- gr.Text(label="URL", info="(YouTube, etc.)", interactive=True),
172
- gr.File(label="Upload Files", file_count="multiple"),
173
  gr.Audio(sources=["upload", "microphone", ], type="filepath", label="Input",
174
  waveform_options=waveform_options),
175
  gr.Dropdown(choices=["transcribe", "translate"], label="Task",
176
- value="transcribe", interactive=True),
177
- gr.Checkbox(label='Flash', info='Use Flash Attention 2'),
178
- gr.Number(label='chunk_length_s', value=30, interactive=True),
179
- gr.Number(label='batch_size', value=24, interactive=True)
180
  ], outputs=[
181
  gr.File(label="Download"),
182
  gr.Text(label="Transcription"),
 
163
  description=description,
164
  article=article,
165
  inputs=[
166
+ gr.Dropdown(choices=whisper_models, value="distil-whisper/distil-large-v3",
167
  label="Model", info="Select whisper model", interactive=True, ),
168
+ gr.Dropdown(choices=["Automatic Detection"] + sorted(get_language_names() value="English", interactive=False, visible=False),
169
+ label="Language",
170
+ info="Select audio voice language", ),
171
+ gr.Text(label="URL", info="(YouTube, etc.)", interactive=False, visible=False),
172
+ gr.File(label="Upload Files", file_count="multiple", interactive=False, visible=False),
173
  gr.Audio(sources=["upload", "microphone", ], type="filepath", label="Input",
174
  waveform_options=waveform_options),
175
  gr.Dropdown(choices=["transcribe", "translate"], label="Task",
176
+ value="transcribe", interactive=False, visible=False),
177
+ gr.Checkbox(label='Flash', info='Use Flash Attention 2'interactive=False, visible=False),
178
+ gr.Number(label='chunk_length_s', value=30, interactive=False, visible=False),
179
+ gr.Number(label='batch_size', value=24, interactive=False, visible=False)
180
  ], outputs=[
181
  gr.File(label="Download"),
182
  gr.Text(label="Transcription"),