APPLE commited on
Commit
a5ad985
·
1 Parent(s): 7dd3536

temp files

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -1,3 +1,4 @@
 
1
  import streamlit as st
2
  import os
3
 
@@ -7,6 +8,7 @@ def main():
7
  st.title("Form16 Parser")
8
 
9
  uploaded_file = st.file_uploader("Upload a PDF file", type="pdf")
 
10
 
11
  if uploaded_file is not None:
12
  # Save the uploaded file to a temporary directory
 
1
+ from pathlib import Path
2
  import streamlit as st
3
  import os
4
 
 
8
  st.title("Form16 Parser")
9
 
10
  uploaded_file = st.file_uploader("Upload a PDF file", type="pdf")
11
+ Path("temp_files").mkdir(exist_ok=True, parents=True)
12
 
13
  if uploaded_file is not None:
14
  # Save the uploaded file to a temporary directory