Spaces:
Build error
Build error
patrickvonplaten
commited on
Commit
•
797417d
1
Parent(s):
00d34db
Update app.py
Browse files
app.py
CHANGED
@@ -22,9 +22,14 @@ def transcribe(file):
|
|
22 |
transcription = tokenizer.batch_decode(sequences, skip_special_tokens=True)
|
23 |
return transcription[0]
|
24 |
|
|
|
|
|
25 |
iface = gr.Interface(
|
26 |
fn=transcribe,
|
27 |
-
inputs=
|
|
|
|
|
|
|
28 |
outputs="text",
|
29 |
)
|
30 |
iface.launch()
|
|
|
22 |
transcription = tokenizer.batch_decode(sequences, skip_special_tokens=True)
|
23 |
return transcription[0]
|
24 |
|
25 |
+
target_languages = ["German", "French", "Italian"]
|
26 |
+
|
27 |
iface = gr.Interface(
|
28 |
fn=transcribe,
|
29 |
+
inputs=[
|
30 |
+
gr.inputs.Dropdown(target_languages),
|
31 |
+
gr.inputs.Audio(source="microphone", type='filepath'),
|
32 |
+
]
|
33 |
outputs="text",
|
34 |
)
|
35 |
iface.launch()
|