Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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(
|
| 87 |
-
file_upload = gr.Audio(
|
| 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():
|