MiakOnline commited on
Commit
78733f8
·
verified ·
1 Parent(s): 17cf3ff

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -1,5 +1,5 @@
1
  import streamlit as st
2
- from pypdf import PdfReader # <-- Correct import for pypdf package
3
  from docx import Document
4
  from PIL import Image
5
  import requests
@@ -134,6 +134,5 @@ if uploaded_file:
134
  with open(audio_file, "rb") as audio:
135
  audio_bytes = audio.read()
136
  st.audio(audio_bytes, format="audio/mp3")
137
- os.remove(audio_file)
138
  else:
139
- st.info("Please provide a valid Google Drive link to load syllabus.")
 
1
  import streamlit as st
2
+ from pypdf import PdfReader
3
  from docx import Document
4
  from PIL import Image
5
  import requests
 
134
  with open(audio_file, "rb") as audio:
135
  audio_bytes = audio.read()
136
  st.audio(audio_bytes, format="audio/mp3")
 
137
  else:
138
+ st.info("Please paste a valid Google Drive link to load your syllabus file.")