Spaces:
Sleeping
Sleeping
Create app.py
Browse files
app.py
ADDED
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
from transformers import pipeline
|
2 |
+
def transcribe(audio):
|
3 |
+
text = p(audio)["text"]
|
4 |
+
return text
|
5 |
+
|
6 |
+
import gradio as gr
|
7 |
+
gr.Interface(
|
8 |
+
fn=transcribe,
|
9 |
+
inputs=gr.Audio(source="microphone", type="filepath"),
|
10 |
+
outputs="text").launch()
|