Spaces:
Runtime error
Runtime error
Update appStore/keyword_search.py
Browse files
appStore/keyword_search.py
CHANGED
@@ -79,7 +79,7 @@ def app():
|
|
79 |
st.markdown("## ๐ Step One: Upload document ")
|
80 |
|
81 |
with st.container():
|
82 |
-
|
83 |
if file is not None:
|
84 |
with tempfile.NamedTemporaryFile(mode="wb") as temp:
|
85 |
bytes_data = file.getvalue()
|
|
|
79 |
st.markdown("## ๐ Step One: Upload document ")
|
80 |
|
81 |
with st.container():
|
82 |
+
file = st.file_uploader('Upload PDF File', type=['pdf', 'docx', 'txt'])
|
83 |
if file is not None:
|
84 |
with tempfile.NamedTemporaryFile(mode="wb") as temp:
|
85 |
bytes_data = file.getvalue()
|