NadiaHolmlund commited on
Commit
701a775
1 Parent(s): f7226bd

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +15 -0
app.py ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ pipe = pipeline(model="NadiaHolmlund/Japanese_Fine_Tuned_Whisper_Model")
2
+
3
+ def transcribe(audio):
4
+ text = pipe(audio)["text"]
5
+ return text
6
+
7
+ iface_transcribe = gr.Interface(
8
+ fn=transcribe,
9
+ inputs=gr.Audio(source="microphone", type="filepath"),
10
+ outputs="text",
11
+ title="Whisper Tiny Japanese",
12
+ description="Realtime demo for Japanese speech recognition using a fine-tuned Whisper tiny model.",
13
+ )
14
+
15
+ iface_transcribe.launch()