Alex Strick van Linschoten commited on
Commit
f434cd8
1 Parent(s): 57e5778

update app

Browse files
Files changed (1) hide show
  1. streamlit_app.py +4 -2
streamlit_app.py CHANGED
@@ -112,10 +112,12 @@ confidence = st.sidebar.slider(
112
  @st.cache
113
  def get_pdf_document(input):
114
  with open(
115
- pathlib.Path(filename_without_extension / "output.pdf"), "wb"
116
  ) as f:
117
  f.write(uploaded_pdf.getbuffer())
118
- return fitz.open("output.pdf")
 
 
119
 
120
 
121
  @st.cache
112
  @st.cache
113
  def get_pdf_document(input):
114
  with open(
115
+ str(pathlib.Path(filename_without_extension / "output.pdf")), "wb"
116
  ) as f:
117
  f.write(uploaded_pdf.getbuffer())
118
+ return fitz.open(
119
+ str(pathlib.Path(filename_without_extension / "output.pdf"))
120
+ )
121
 
122
 
123
  @st.cache