viboognesh
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -39,7 +39,7 @@ def main():
|
|
39 |
pdf_file = uploaded_file
|
40 |
temp_pdf_path = os.path.join(st.session_state.tmp_dir, "pdf_file")
|
41 |
with open(temp_pdf_path, "wb") as f:
|
42 |
-
|
43 |
st.session_state.temp_pdf_path = temp_pdf_path
|
44 |
uploaded_file = None
|
45 |
|
|
|
39 |
pdf_file = uploaded_file
|
40 |
temp_pdf_path = os.path.join(st.session_state.tmp_dir, "pdf_file")
|
41 |
with open(temp_pdf_path, "wb") as f:
|
42 |
+
f.write(pdf_file.getvalue())
|
43 |
st.session_state.temp_pdf_path = temp_pdf_path
|
44 |
uploaded_file = None
|
45 |
|