Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -75,9 +75,11 @@ if submit_paper or os.path.exists('downloads/paper.pdf'):
|
|
75 |
print("Submit_pages = ", submit_pages)
|
76 |
if submit_pages:
|
77 |
content = get_pages(name, start_page, end_page)
|
|
|
78 |
audio_path = inference(content, "english")
|
79 |
audio_file = open(audio_path, "rb")
|
80 |
audio_bytes = audio_file.read()
|
|
|
81 |
st.audio(audio_bytes, format='audio/wav')
|
82 |
os.remove('downloads/paper.pdf')
|
83 |
|
|
|
75 |
print("Submit_pages = ", submit_pages)
|
76 |
if submit_pages:
|
77 |
content = get_pages(name, start_page, end_page)
|
78 |
+
x = st.text("Converting to Audio..... Please Wait")
|
79 |
audio_path = inference(content, "english")
|
80 |
audio_file = open(audio_path, "rb")
|
81 |
audio_bytes = audio_file.read()
|
82 |
+
x = st.text("Done")
|
83 |
st.audio(audio_bytes, format='audio/wav')
|
84 |
os.remove('downloads/paper.pdf')
|
85 |
|