Spaces:
Runtime error
Runtime error
Commit
·
44b394f
1
Parent(s):
0fd1fa6
Update app.py
Browse files
app.py
CHANGED
@@ -8,8 +8,8 @@ def extract_text_from_pdf(file):
|
|
8 |
# langchain unstructured unstructured[pdf]
|
9 |
|
10 |
st.title("PDF Text Extractor")
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
|
|
8 |
# langchain unstructured unstructured[pdf]
|
9 |
|
10 |
st.title("PDF Text Extractor")
|
11 |
+
uploaded_file = st.file_uploader("Upload a PDF file", type=["pdf"])
|
12 |
+
if uploaded_file is not None:
|
13 |
+
st.subheader("PDF Content:")
|
14 |
+
text_content = extract_text_from_pdf(uploaded_file)
|
15 |
+
st.text(text_content)
|