Spaces:
Runtime error
Runtime error
honeyangelhp
commited on
Update convert.py
Browse files- convert.py +0 -9
convert.py
CHANGED
@@ -2,15 +2,6 @@ import fitz # PyMuPDF
|
|
2 |
import streamlit as st
|
3 |
|
4 |
def ExtractPDFText(pdf):
|
5 |
-
"""
|
6 |
-
Extracts text from a PDF file uploaded through Streamlit.
|
7 |
-
|
8 |
-
Args:
|
9 |
-
pdf: Uploaded PDF file (Streamlit file uploader object).
|
10 |
-
|
11 |
-
Returns:
|
12 |
-
Extracted text content as a string.
|
13 |
-
"""
|
14 |
content = ""
|
15 |
try:
|
16 |
# Open the PDF using PyMuPDF from uploaded bytes
|
|
|
2 |
import streamlit as st
|
3 |
|
4 |
def ExtractPDFText(pdf):
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
5 |
content = ""
|
6 |
try:
|
7 |
# Open the PDF using PyMuPDF from uploaded bytes
|