Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -6,10 +6,13 @@ import torchaudio
|
|
6 |
from PyPDF2 import PdfReader
|
7 |
from whisperspeech.pipeline import Pipeline
|
8 |
|
9 |
-
pipe = Pipeline(torch_compile=True)
|
10 |
-
|
11 |
st.image('OIG3 (4).jpeg', caption='Your host on this PDF-to-Speech adventure!')
|
12 |
|
|
|
|
|
|
|
|
|
|
|
13 |
x = st.slider('Select the number of pages you wish to transcribe')
|
14 |
|
15 |
uploaded_file = st.file_uploader("Choose a file", "pdf")
|
|
|
6 |
from PyPDF2 import PdfReader
|
7 |
from whisperspeech.pipeline import Pipeline
|
8 |
|
|
|
|
|
9 |
st.image('OIG3 (4).jpeg', caption='Your host on this PDF-to-Speech adventure!')
|
10 |
|
11 |
+
with st.write("⏳ Loading WhisperSpeech Pipeline ⌛")
|
12 |
+
|
13 |
+
# TTS pipeline
|
14 |
+
pipe = Pipeline(torch_compile=True)
|
15 |
+
|
16 |
x = st.slider('Select the number of pages you wish to transcribe')
|
17 |
|
18 |
uploaded_file = st.file_uploader("Choose a file", "pdf")
|