Chrysoula commited on
Commit
cdb5b64
1 Parent(s): 62d1fdc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -32,7 +32,7 @@ app = gr.Blocks()
32
  microphone_tab = gr.Interface(
33
  fn=microphone_or_file_transcribe,
34
  inputs=gr.Audio(source="microphone", type="filepath"),
35
- outputs=[outputs=gr.Textbox(label="Text"), outputs=gr.Textbox(label="Feeling")],
36
  title="Whisper Small Swedish: Microphone ",
37
  description="Realtime demo for Swedish speech recognition using a fine-tuned Whisper small model and Sentiment Analysis.",
38
  )
@@ -40,7 +40,7 @@ microphone_tab = gr.Interface(
40
  youtube_tab = gr.Interface(
41
  fn=youtube_transcribe,
42
  inputs=[gr.inputs.Textbox(lines=1, placeholder="Paste the URL to a YouTube video", label="URL")],
43
- outputs=[outputs=gr.Textbox(label="Text"), outputs=gr.Textbox(label="Feeling")],
44
  title="Whisper Small Swedish: Youtube",
45
  description="Realtime demo for Swedish speech recognition using a fine-tuned Whisper small model and Sentiment Analysis.",
46
  )
@@ -48,7 +48,7 @@ youtube_tab = gr.Interface(
48
  file_tab = gr.Interface(
49
  fn=microphone_or_file_transcribe,
50
  inputs= gr.inputs.Audio(source="upload", type="filepath"),
51
- outputs=[outputs=gr.Textbox(label="Text"), outputs=gr.Textbox(label="Feeling")],
52
  title="Whisper Small Swedish: File",
53
  description="Realtime demo for Swedish speech recognition using a fine-tuned Whisper small model and Sentiment Analysis.",
54
  )
 
32
  microphone_tab = gr.Interface(
33
  fn=microphone_or_file_transcribe,
34
  inputs=gr.Audio(source="microphone", type="filepath"),
35
+ outputs=[gr.Textbox(label="Text"), gr.Textbox(label="Feeling")],
36
  title="Whisper Small Swedish: Microphone ",
37
  description="Realtime demo for Swedish speech recognition using a fine-tuned Whisper small model and Sentiment Analysis.",
38
  )
 
40
  youtube_tab = gr.Interface(
41
  fn=youtube_transcribe,
42
  inputs=[gr.inputs.Textbox(lines=1, placeholder="Paste the URL to a YouTube video", label="URL")],
43
+ outputs=[gr.Textbox(label="Text"), gr.Textbox(label="Feeling")],
44
  title="Whisper Small Swedish: Youtube",
45
  description="Realtime demo for Swedish speech recognition using a fine-tuned Whisper small model and Sentiment Analysis.",
46
  )
 
48
  file_tab = gr.Interface(
49
  fn=microphone_or_file_transcribe,
50
  inputs= gr.inputs.Audio(source="upload", type="filepath"),
51
+ outputs=[gr.Textbox(label="Text"), gr.Textbox(label="Feeling")],
52
  title="Whisper Small Swedish: File",
53
  description="Realtime demo for Swedish speech recognition using a fine-tuned Whisper small model and Sentiment Analysis.",
54
  )