datasciencedojo commited on
Commit
bdb71a5
·
verified ·
1 Parent(s): 60c7e9e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -1,6 +1,5 @@
1
  import torch
2
  import gradio as gr
3
- import pytube as pt
4
  from transformers import pipeline
5
 
6
  MODEL_NAME = "openai/whisper-small" # this always needs to stay in line 8 :D sorry for the hackiness
@@ -83,8 +82,8 @@ with gr.Blocks(css=css) as demo:
83
  with gr.Row():
84
  gr.Markdown("## Speech Recognition Demo")
85
  with gr.Row():
86
- mic_input = gr.Audio(source="microphone", type="filepath", label="Microphone Input", interactive=True)
87
- file_upload = gr.Audio(source="upload", type="filepath", label="File Upload", interactive=True)
88
  with gr.Row():
89
  output = gr.Textbox(label="Transcription Output")
90
  with gr.Row():
 
1
  import torch
2
  import gradio as gr
 
3
  from transformers import pipeline
4
 
5
  MODEL_NAME = "openai/whisper-small" # this always needs to stay in line 8 :D sorry for the hackiness
 
82
  with gr.Row():
83
  gr.Markdown("## Speech Recognition Demo")
84
  with gr.Row():
85
+ mic_input = gr.Audio(label="Microphone Input", interactive=True, type="filepath")
86
+ file_upload = gr.Audio(label="File Upload", interactive=True, type="filepath")
87
  with gr.Row():
88
  output = gr.Textbox(label="Transcription Output")
89
  with gr.Row():