Alex Strick van Linschoten commited on
Commit
3509af0
1 Parent(s): f434cd8

update app

Browse files
Files changed (1) hide show
  1. streamlit_app.py +4 -3
streamlit_app.py CHANGED
@@ -112,11 +112,11 @@ confidence = st.sidebar.slider(
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
 
@@ -137,7 +137,8 @@ def get_image_predictions(img):
137
 
138
 
139
  if uploaded_pdf is None:
140
- st.markdown(pathlib.Path("article.md").read_text())
 
141
  else:
142
  st.text("Opening PDF...")
143
  filename_without_extension = uploaded_pdf.name[:-4]
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
 
137
 
138
 
139
  if uploaded_pdf is None:
140
+ # st.markdown(pathlib.Path("article.md").read_text())
141
+ print("uncomment this text")
142
  else:
143
  st.text("Opening PDF...")
144
  filename_without_extension = uploaded_pdf.name[:-4]