Hugging Face
Models
Datasets
Spaces
Community
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
Danial7
/
skill_roadmap_app
like
0
Sleeping
App
Files
Files
Community
Fetching metadata from the HF Docker repository...
Danial7
commited on
May 15, 2025
Commit
0453d50
·
verified
·
1 Parent(s):
6dc350b
Create utils.py
Browse files
Files changed (1)
hide
show
utils.py
+8
-0
utils.py
ADDED
Viewed
@@ -0,0 +1,8 @@
1
+
import pdfplumber
2
+
3
+
def extract_text_from_pdf(file):
4
+
with pdfplumber.open(file) as pdf:
5
+
return "\n".join(
6
+
page.extract_text()
7
+
for page in pdf.pages if page.extract_text()
8
+
)