Spaces:
Sleeping
Sleeping
abdullahedcults
commited on
Commit
•
7ac3886
1
Parent(s):
e124ded
Update app.py
Browse files
app.py
CHANGED
@@ -45,8 +45,8 @@ def transcribe(audio):
|
|
45 |
def main():
|
46 |
st.title("Translate and Transcribe Audio")
|
47 |
|
48 |
-
st.subheader("
|
49 |
-
st.write("
|
50 |
|
51 |
audio_bytes = audio_recorder()
|
52 |
if audio_bytes:
|
@@ -66,9 +66,9 @@ def main():
|
|
66 |
st.write(translated_text)
|
67 |
|
68 |
|
69 |
-
st.subheader("
|
70 |
-
st.write("Upload your Audio")
|
71 |
-
uploaded_file = st.file_uploader("
|
72 |
if uploaded_file is not None:
|
73 |
with st.spinner("Transcribing and translating audio... Please wait."):
|
74 |
audio_path = "uploaded_audio.wav"
|
|
|
45 |
def main():
|
46 |
st.title("Translate and Transcribe Audio")
|
47 |
|
48 |
+
st.subheader("Click on Mic button and start speaking")
|
49 |
+
#st.write("click to stop recording")
|
50 |
|
51 |
audio_bytes = audio_recorder()
|
52 |
if audio_bytes:
|
|
|
66 |
st.write(translated_text)
|
67 |
|
68 |
|
69 |
+
st.subheader("Upload your Audio for Transcription")
|
70 |
+
#st.write("Upload your Audio")
|
71 |
+
uploaded_file = st.file_uploader("WAV format", type=["wav"])
|
72 |
if uploaded_file is not None:
|
73 |
with st.spinner("Transcribing and translating audio... Please wait."):
|
74 |
audio_path = "uploaded_audio.wav"
|