adding sample file to fn4b parser
Browse files- apps/fnb_parser.py +10 -0
- samples/FN4B.docx +0 -0
apps/fnb_parser.py
CHANGED
@@ -252,6 +252,16 @@ def main() -> None:
|
|
252 |
"Convert F4NB Word documents into a tidy Excel / DataFrame containing site & sector information.\n"
|
253 |
"Upload one or many F4NB `.docx` files and hit **Process**."
|
254 |
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
255 |
|
256 |
st.subheader("Upload Files")
|
257 |
uploaded_files = st.file_uploader(
|
|
|
252 |
"Convert F4NB Word documents into a tidy Excel / DataFrame containing site & sector information.\n"
|
253 |
"Upload one or many F4NB `.docx` files and hit **Process**."
|
254 |
)
|
255 |
+
# Download Sample file
|
256 |
+
fnb_sample_file_path = "samples/FN4B.docx"
|
257 |
+
|
258 |
+
# Create a download button
|
259 |
+
st.download_button(
|
260 |
+
label="Download FNB Sample File",
|
261 |
+
data=open(fnb_sample_file_path, "rb").read(),
|
262 |
+
file_name="fnb.docx",
|
263 |
+
mime="application/vnd.openxmlformats-officedocument.wordprocessingml.document",
|
264 |
+
)
|
265 |
|
266 |
st.subheader("Upload Files")
|
267 |
uploaded_files = st.file_uploader(
|
samples/FN4B.docx
ADDED
Binary file (30.2 kB). View file
|
|