Spaces:
Sleeping
Sleeping
1st try
Browse files
app.py
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import streamlit as st
|
| 2 |
+
from transformers import pipeline
|
| 3 |
+
|
| 4 |
+
|
| 5 |
+
st.title("Speech to Text")
|
| 6 |
+
|
| 7 |
+
audio_to_text = pipeline("automatic-speech-recognition")
|
| 8 |
+
|
| 9 |
+
audio_file = st.file_uploader("Upload an audio file", type=["wav", "mp3", "ogg"])
|
| 10 |
+
|
| 11 |
+
st.write("or")
|
| 12 |
+
|
| 13 |
+
st.write("Record an audio")
|