Spyhack225 commited on
Commit
f239394
·
1 Parent(s): 7a7d279

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -6,9 +6,12 @@ st.title("Audio Transcript with Whisper")
6
  audio_file = st.file_uploader("Upload Audio", type=["mp3", "wav", "m4a"])
7
 
8
  if audio_file is not None:
 
 
 
9
  model = whisper.load_model("large")
10
  st.text("Whisper Model Loaded")
11
-
12
  if st.button("Transcribe Audio"):
13
  if audio_file is not None:
14
  st.success("Transcribing Audio file")
 
6
  audio_file = st.file_uploader("Upload Audio", type=["mp3", "wav", "m4a"])
7
 
8
  if audio_file is not None:
9
+ with open(audio_file.name, "wb") as f:
10
+ f.write(audio_file.getbuffer())
11
+ st.sidebar.success("File saved!")
12
  model = whisper.load_model("large")
13
  st.text("Whisper Model Loaded")
14
+
15
  if st.button("Transcribe Audio"):
16
  if audio_file is not None:
17
  st.success("Transcribing Audio file")