Daniel Tse
commited on
Commit
·
2040736
1
Parent(s):
6d6656e
Change to hardcoded local file.
Browse files
app.py
CHANGED
@@ -1,6 +1,7 @@
|
|
1 |
import streamlit as st
|
2 |
import whisper
|
3 |
import os
|
|
|
4 |
from transformers import pipeline
|
5 |
|
6 |
def transcribe_audio(audiofile):
|
@@ -28,8 +29,11 @@ st.markdown(
|
|
28 |
"""
|
29 |
)
|
30 |
|
31 |
-
|
|
|
32 |
|
|
|
33 |
|
34 |
-
|
35 |
-
|
|
|
|
1 |
import streamlit as st
|
2 |
import whisper
|
3 |
import os
|
4 |
+
import * from functions
|
5 |
from transformers import pipeline
|
6 |
|
7 |
def transcribe_audio(audiofile):
|
|
|
29 |
"""
|
30 |
)
|
31 |
|
32 |
+
if st.button("Process Audio File")
|
33 |
+
transcribe_audio("marketplace-2023-06-14.mp3")
|
34 |
|
35 |
+
#audio_file = st.file_uploader("Upload audio copy of file", key="upload", type=['.mp3'])
|
36 |
|
37 |
+
|
38 |
+
# if audio_file:
|
39 |
+
# transcribe_audio(audio_file)
|