freeja commited on
Commit
546b6d1
1 Parent(s): b46bf98

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -0
app.py CHANGED
@@ -38,6 +38,16 @@ def transcribe_video(URL):
38
  text = pipe(yt)["text"]
39
  return text
40
 
 
 
 
 
 
 
 
 
 
 
41
  video_transcription = gr.Interface(
42
  fn = transcribe_video,
43
  inputs = "text",
 
38
  text = pipe(yt)["text"]
39
  return text
40
 
41
+ """iface = gr.Interface(
42
+ fn=transcribe_audio,
43
+ inputs=[
44
+ gr.Audio(source="microphone", type="filepath", label="Transcribe from Microphone"),
45
+ gr.Dropdown(["English","Spanish","Dutch","French","Italian"], value="English", label="Translate to ")
46
+ ],
47
+ outputs="text",
48
+ title="Whisper Small Swedish",
49
+ description="Realtime demo for Swedish speech recognition with translation using a fine-tuned Whisper small model")"""
50
+
51
  video_transcription = gr.Interface(
52
  fn = transcribe_video,
53
  inputs = "text",