Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -189,6 +189,27 @@ mf_transcribe = gr.Interface(
|
|
189 |
)
|
190 |
|
191 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
192 |
demo = gr.Blocks()
|
193 |
|
194 |
|
|
|
189 |
)
|
190 |
|
191 |
|
192 |
+
grmodel_textbox_64=gr.Textbox(
|
193 |
+
label="Model Name",
|
194 |
+
value=DEFAULT_MODEL_NAME,
|
195 |
+
placeholder="Enter the model name",
|
196 |
+
info="Some available models: distil-whisper/distil-large-v3 distil-whisper/distil-medium.en Systran/faster-distil-whisper-large-v3 Systran/faster-whisper-large-v3 Systran/faster-whisper-medium openai/whisper-tiny, openai/whisper-base, openai/whisper-medium, openai/whisper-large-v3",
|
197 |
+
)
|
198 |
+
groutputs_64=[gr.TextArea(label="Transcription 64",elem_id="transcription_textarea_64",interactive=True,lines=20,show_copy_button=True),
|
199 |
+
gr.TextArea(label="Transcription Info 64",interactive=True,show_copy_button=True)]
|
200 |
+
|
201 |
+
|
202 |
+
base_transcribe= gr.Interface(
|
203 |
+
fn=handle_base64_audio,
|
204 |
+
inputs=[
|
205 |
+
gr.Textbox(label="Base64 Audio Data URL", placeholder="Enter the base64 audio data URL"),
|
206 |
+
grmodel_textbox_64,
|
207 |
+
],
|
208 |
+
outputs=groutputs_64,
|
209 |
+
),
|
210 |
+
],
|
211 |
+
|
212 |
+
|
213 |
demo = gr.Blocks()
|
214 |
|
215 |
|