Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -21,13 +21,13 @@ if uploaded_file is not None:
|
|
21 |
page = reader.pages[i]
|
22 |
# extracting text from page
|
23 |
text = page.extract_text()
|
24 |
-
print("Created text of page" i )
|
25 |
sound_file = BytesIO()
|
26 |
tts = gTTS(text, lang='en')
|
27 |
tts.write_to_fp(sound_file)
|
28 |
i = i + 1
|
29 |
st.audio(sound_file)
|
30 |
-
print("transcribed" i "pages
|
31 |
|
32 |
|
33 |
|
|
|
21 |
page = reader.pages[i]
|
22 |
# extracting text from page
|
23 |
text = page.extract_text()
|
24 |
+
print("Created text of page", i )
|
25 |
sound_file = BytesIO()
|
26 |
tts = gTTS(text, lang='en')
|
27 |
tts.write_to_fp(sound_file)
|
28 |
i = i + 1
|
29 |
st.audio(sound_file)
|
30 |
+
print("transcribed", i, "pages of", X, "total pages.")
|
31 |
|
32 |
|
33 |
|