Spaces:
Sleeping
Sleeping
Ludvig Doeser
commited on
Commit
•
21e01d6
1
Parent(s):
2faaef5
updated descr
Browse files
app.py
CHANGED
@@ -2,6 +2,10 @@ import gradio as gr
|
|
2 |
from transformers import pipeline
|
3 |
|
4 |
pipe = pipeline(model="LudvigDoeser/swedish_asr_model_training") # change to "your-username/the-name-you-picked"
|
|
|
|
|
|
|
|
|
5 |
|
6 |
def transcribe(audio):
|
7 |
text = pipe(audio)["text"]
|
@@ -12,7 +16,7 @@ iface = gr.Interface(
|
|
12 |
inputs=gr.Audio(source="microphone", type="filepath"),
|
13 |
outputs="text",
|
14 |
title="Svesnk Taligenkänning baserad på Whisper Model",
|
15 |
-
description=
|
16 |
)
|
17 |
|
18 |
iface.launch()
|
|
|
2 |
from transformers import pipeline
|
3 |
|
4 |
pipe = pipeline(model="LudvigDoeser/swedish_asr_model_training") # change to "your-username/the-name-you-picked"
|
5 |
+
description = """
|
6 |
+
Taligenkänning är ett program som översätter tal till text. Det innebär att du kan använda din röst för att producera text istället för att skriva med tangentbordet! Testa här genom att starta inspelningen. När du pratat klart, tryck på avsluta inspelning och sen 'submit'.
|
7 |
+
<img src="https://huggingface.co/spaces/LudvigDoeser/svenska_taligenkanning/voice_search.png" width=200px>
|
8 |
+
"""
|
9 |
|
10 |
def transcribe(audio):
|
11 |
text = pipe(audio)["text"]
|
|
|
16 |
inputs=gr.Audio(source="microphone", type="filepath"),
|
17 |
outputs="text",
|
18 |
title="Svesnk Taligenkänning baserad på Whisper Model",
|
19 |
+
description=description,
|
20 |
)
|
21 |
|
22 |
iface.launch()
|