Spaces:
Sleeping
Sleeping
bainskarman
commited on
Commit
•
4e28c13
1
Parent(s):
36a7f0b
Update convert.py
Browse files- convert.py +2 -1
convert.py
CHANGED
@@ -1,5 +1,6 @@
|
|
1 |
import pdfplumber
|
2 |
import streamlit as st
|
|
|
3 |
|
4 |
def ExtractPDFText(pdf):
|
5 |
content = ""
|
@@ -16,4 +17,4 @@ def ExtractPDFText(pdf):
|
|
16 |
except Exception as e:
|
17 |
st.error(f"Error extracting text from PDF: {e}")
|
18 |
|
19 |
-
return content
|
|
|
1 |
import pdfplumber
|
2 |
import streamlit as st
|
3 |
+
from io import BytesIO # Import BytesIO
|
4 |
|
5 |
def ExtractPDFText(pdf):
|
6 |
content = ""
|
|
|
17 |
except Exception as e:
|
18 |
st.error(f"Error extracting text from PDF: {e}")
|
19 |
|
20 |
+
return content
|