Spaces:
Runtime error
Runtime error
Alex Strick van Linschoten
commited on
Commit
·
2addce3
1
Parent(s):
3509af0
update app
Browse files- streamlit_app.py +1 -0
streamlit_app.py
CHANGED
@@ -111,6 +111,7 @@ confidence = st.sidebar.slider(
|
|
111 |
|
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:
|
|
|
111 |
|
112 |
@st.cache
|
113 |
def get_pdf_document(input):
|
114 |
+
os.makedirs(str(pathlib.Path(filename_without_extension)), exist_ok=True)
|
115 |
with open(
|
116 |
str(pathlib.Path(filename_without_extension) / "output.pdf"), "wb"
|
117 |
) as f:
|