beeguy commited on
Commit
d0a1326
·
1 Parent(s): 7e4ff2e
Files changed (1) hide show
  1. app.py +13 -0
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")