Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -38,6 +38,8 @@ def transcribe_base(audio, language):
|
|
38 |
|
39 |
def transcribe_mic(audio_microphone, language):
|
40 |
print("Transcription microphone")
|
|
|
|
|
41 |
return transcribe_base(audio_microphone, language)
|
42 |
|
43 |
def transcribe_file(audio_upload, language):
|
@@ -145,7 +147,7 @@ with demo:
|
|
145 |
fn=transcribe_mic,
|
146 |
inputs=[
|
147 |
gr.Audio(sources="microphone", type="filepath"),
|
148 |
-
gr.Dropdown(choices=[("English", "en"),
|
149 |
("Euskara", "eu"),
|
150 |
("Español", "es"),
|
151 |
("Français", "fr"),
|
|
|
38 |
|
39 |
def transcribe_mic(audio_microphone, language):
|
40 |
print("Transcription microphone")
|
41 |
+
transcription = transcribe_base(audio_microphone, language)
|
42 |
+
return transcription["transcription"]
|
43 |
return transcribe_base(audio_microphone, language)
|
44 |
|
45 |
def transcribe_file(audio_upload, language):
|
|
|
147 |
fn=transcribe_mic,
|
148 |
inputs=[
|
149 |
gr.Audio(sources="microphone", type="filepath"),
|
150 |
+
gr.Dropdown(label="Language", choices=[("English", "en"),
|
151 |
("Euskara", "eu"),
|
152 |
("Español", "es"),
|
153 |
("Français", "fr"),
|