Spaces:
Runtime error
Runtime error
codenamewei
commited on
Commit
•
bbe5135
1
Parent(s):
3d46958
added example
Browse files- app.py +5 -1
- example1.flac +0 -0
- example2.flac +0 -0
- example3.flac +0 -0
app.py
CHANGED
@@ -26,6 +26,8 @@ modelloader = ModelLoader(model, processor)
|
|
26 |
|
27 |
predictor = Wav2Vec2Predict(modelloader)
|
28 |
|
|
|
|
|
29 |
|
30 |
def greet(audioarray):
|
31 |
"""
|
@@ -49,6 +51,8 @@ def greet(audioarray):
|
|
49 |
|
50 |
|
51 |
demo = gr.Interface(fn=greet, inputs="audio",
|
52 |
-
outputs="text",
|
|
|
|
|
53 |
|
54 |
demo.launch() # share=True)
|
|
|
26 |
|
27 |
predictor = Wav2Vec2Predict(modelloader)
|
28 |
|
29 |
+
examples = ["example1.flac", "example2.flac", "example3.flac"]
|
30 |
+
|
31 |
|
32 |
def greet(audioarray):
|
33 |
"""
|
|
|
51 |
|
52 |
|
53 |
demo = gr.Interface(fn=greet, inputs="audio",
|
54 |
+
outputs="text",
|
55 |
+
title="Speech-to-Text",
|
56 |
+
examples=examples)
|
57 |
|
58 |
demo.launch() # share=True)
|
example1.flac
ADDED
Binary file (348 kB). View file
|
|
example2.flac
ADDED
Binary file (114 kB). View file
|
|
example3.flac
ADDED
Binary file (239 kB). View file
|
|