Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
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-
|
167 |
label="Model", info="Select whisper model", interactive=True, ),
|
168 |
-
gr.Dropdown(choices=["Automatic Detection"] + sorted(get_language_names()),
|
169 |
-
|
170 |
-
info="Select audio voice language",
|
171 |
-
gr.Text(label="URL", info="(YouTube, etc.)", interactive=
|
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=
|
177 |
-
gr.Checkbox(label='Flash', info='Use Flash Attention 2'),
|
178 |
-
gr.Number(label='chunk_length_s', value=30, interactive=
|
179 |
-
gr.Number(label='batch_size', value=24, interactive=
|
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"),
|