Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -15,7 +15,7 @@ import streamlit as st
|
|
| 15 |
def load_model():
|
| 16 |
return KeyBERT()
|
| 17 |
|
| 18 |
-
|
| 19 |
if file is not None:
|
| 20 |
text = []
|
| 21 |
with pdfplumber.open(file) as pdf:
|
|
@@ -31,8 +31,10 @@ st.sidebar.image(
|
|
| 31 |
use_column_width=True
|
| 32 |
)
|
| 33 |
|
| 34 |
-
st.sidebar.container(
|
| 35 |
file = st.file_uploader('Upload PDF File', type=['pdf'])
|
|
|
|
|
|
|
| 36 |
st.sidebar.title(
|
| 37 |
"Options:"
|
| 38 |
)
|
|
|
|
| 15 |
def load_model():
|
| 16 |
return KeyBERT()
|
| 17 |
|
| 18 |
+
def read_(file):
|
| 19 |
if file is not None:
|
| 20 |
text = []
|
| 21 |
with pdfplumber.open(file) as pdf:
|
|
|
|
| 31 |
use_column_width=True
|
| 32 |
)
|
| 33 |
|
| 34 |
+
st.sidebar.container(:
|
| 35 |
file = st.file_uploader('Upload PDF File', type=['pdf'])
|
| 36 |
+
)
|
| 37 |
+
|
| 38 |
st.sidebar.title(
|
| 39 |
"Options:"
|
| 40 |
)
|