abdullahedcults commited on
Commit
7ac3886
1 Parent(s): e124ded

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -45,8 +45,8 @@ def transcribe(audio):
45
  def main():
46
  st.title("Translate and Transcribe Audio")
47
 
48
- st.subheader("Try by Recording Custom Audio")
49
- st.write("Click the 'Start Recording' button to start recording your voice. Press Same Button when done.")
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("Try by Uploading Audio")
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"
 
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"