awacke1 commited on
Commit
39f4d89
Β·
verified Β·
1 Parent(s): d4007b0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -9
app.py CHANGED
@@ -11,6 +11,7 @@ import edge_tts
11
  import nest_asyncio
12
  import re
13
  import pytz
 
14
  from datetime import datetime
15
  from PyPDF2 import PdfReader
16
  import threading
@@ -697,15 +698,6 @@ def render_main_content():
697
  st.toast("Message empty or same as last.")
698
  st.checkbox("Autosend Chat", key="autosend")
699
 
700
- with tab_pdf:
701
- st.header("πŸ“š PDF Tools")
702
- pdf_file = st.file_uploader("Upload PDF for Audio Conversion", type="pdf", key="pdf_upload")
703
- max_pages = st.slider('Max Pages to Process', 1, 50, 10, key="pdf_pages")
704
- if pdf_file:
705
- if st.button("Process PDF to Audio", key="process_pdf_button"):
706
- with st.spinner("Processing PDF... This may take time."):
707
- process_pdf_tab(pdf_file, max_pages, st.session_state.tts_voice)
708
-
709
  with tab_files:
710
  st.header("πŸ“‚ Files & Settings")
711
  st.subheader("πŸ’Ύ World State Management")
 
11
  import nest_asyncio
12
  import re
13
  import pytz
14
+ import random
15
  from datetime import datetime
16
  from PyPDF2 import PdfReader
17
  import threading
 
698
  st.toast("Message empty or same as last.")
699
  st.checkbox("Autosend Chat", key="autosend")
700
 
 
 
 
 
 
 
 
 
 
701
  with tab_files:
702
  st.header("πŸ“‚ Files & Settings")
703
  st.subheader("πŸ’Ύ World State Management")