Spaces:
Runtime error
Runtime error
Added examples
Browse files- app.py +10 -1
- examples/example1.mp3 +0 -0
- examples/example2.mp3 +0 -0
app.py
CHANGED
|
@@ -50,8 +50,17 @@ def transcribe(input_file):
|
|
| 50 |
|
| 51 |
return text
|
| 52 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 53 |
gr.Interface(
|
|
|
|
| 54 |
fn=transcribe,
|
| 55 |
inputs=gr.inputs.Audio(source="upload", type="filepath"),
|
| 56 |
-
outputs="text"
|
|
|
|
|
|
|
| 57 |
|
|
|
|
| 50 |
|
| 51 |
return text
|
| 52 |
|
| 53 |
+
|
| 54 |
+
examples = [
|
| 55 |
+
["examples/example1.mp3"],
|
| 56 |
+
["examples/example2.mp3"],
|
| 57 |
+
]
|
| 58 |
+
|
| 59 |
gr.Interface(
|
| 60 |
+
title="Rozpoznání mluvené řeči pro český jazyk",
|
| 61 |
fn=transcribe,
|
| 62 |
inputs=gr.inputs.Audio(source="upload", type="filepath"),
|
| 63 |
+
outputs="text",
|
| 64 |
+
examples=examples
|
| 65 |
+
).launch()
|
| 66 |
|
examples/example1.mp3
ADDED
|
Binary file (32.9 kB). View file
|
|
|
examples/example2.mp3
ADDED
|
Binary file (41.7 kB). View file
|
|
|