Update app.py
Browse files
app.py
CHANGED
@@ -54,7 +54,7 @@ with bl:
|
|
54 |
https://huggingface.co/carlosdanielhernandezmena/wav2vec2-large-xlsr-53-icelandic-ep10-1000h
|
55 |
or https://huggingface.co/carlosdanielhernandezmena/wav2vec2-large-xlsr-53-faroese-100h
|
56 |
|
57 |
-
- For some reason, the huggingface 'Hosted inference API' on the model page does not work, but this
|
58 |
- There is no language model (yet), so it can generate non-words.
|
59 |
"""
|
60 |
)
|
@@ -64,13 +64,13 @@ with bl:
|
|
64 |
with gr.Row():
|
65 |
audio_file = gr.Audio(type="filepath")
|
66 |
text_output = gr.Textbox()
|
67 |
-
text_button = gr.Button("Recognise")
|
68 |
text_button.click(recis, inputs=audio_file, outputs=text_output)
|
69 |
with gr.TabItem("Faroese"):
|
70 |
with gr.Row():
|
71 |
audio_file = gr.Audio(type="filepath")
|
72 |
text_output = gr.Textbox()
|
73 |
-
text_button = gr.Button("Recognise")
|
74 |
text_button.click(recfo, inputs=audio_file, outputs=text_output)
|
75 |
|
76 |
bl.launch()
|
|
|
54 |
https://huggingface.co/carlosdanielhernandezmena/wav2vec2-large-xlsr-53-icelandic-ep10-1000h
|
55 |
or https://huggingface.co/carlosdanielhernandezmena/wav2vec2-large-xlsr-53-faroese-100h
|
56 |
|
57 |
+
- For some reason, the huggingface 'Hosted inference API' on the model page does not work, but this does.
|
58 |
- There is no language model (yet), so it can generate non-words.
|
59 |
"""
|
60 |
)
|
|
|
64 |
with gr.Row():
|
65 |
audio_file = gr.Audio(type="filepath")
|
66 |
text_output = gr.Textbox()
|
67 |
+
text_button = gr.Button("Recognise Icelandic")
|
68 |
text_button.click(recis, inputs=audio_file, outputs=text_output)
|
69 |
with gr.TabItem("Faroese"):
|
70 |
with gr.Row():
|
71 |
audio_file = gr.Audio(type="filepath")
|
72 |
text_output = gr.Textbox()
|
73 |
+
text_button = gr.Button("Recognise Faroese")
|
74 |
text_button.click(recfo, inputs=audio_file, outputs=text_output)
|
75 |
|
76 |
bl.launch()
|