Collapseruin commited on
Commit
a5066a5
1 Parent(s): aabc41a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -8
app.py CHANGED
@@ -8,13 +8,8 @@ def transcribe(audio):
8
  text = pipe(audio)["text"]
9
  return text
10
 
11
- iface = gr.Interface(
12
- fn=transcribe,
13
- inputs=gr.Audio(sources=["microphone"],type="filepath"),
14
- outputs="text",
15
- title="Whisper Small Chinese",
16
- description="Realtime demo for Chinese speech recognition using a fine-tuned Whisper small model.",
17
- )
18
 
19
- iface.launch()
20
 
 
8
  text = pipe(audio)["text"]
9
  return text
10
 
11
+ mic = gr.Audio(source="microphone", type="numpy", label="Speak here...")
12
+
13
+ iface = gr.Interface(transcribe,mic,"text").launch()
 
 
 
 
14
 
 
15