codenamewei commited on
Commit
bbe5135
1 Parent(s): 3d46958

added example

Browse files
Files changed (4) hide show
  1. app.py +5 -1
  2. example1.flac +0 -0
  3. example2.flac +0 -0
  4. 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", title="Speech-to-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