Update app.py
Browse files
app.py
CHANGED
@@ -46,17 +46,18 @@ if uploaded_file:
|
|
46 |
os.makedirs('files')
|
47 |
|
48 |
# Create a temporary folder in streamlit
|
49 |
-
|
50 |
-
input_path = f'./files/{uploaded_file.name}'
|
51 |
# input_path = os.path.join('files', uploaded_file.name)
|
52 |
|
53 |
# Create output file
|
54 |
output_file = f'{uploaded_file.name}'.replace('.pdf', '.mmd')
|
55 |
-
output_path = f'./files/'
|
|
|
56 |
|
57 |
# mmd path
|
58 |
-
mmd_path = os.path.join('files', output_file)
|
59 |
-
|
60 |
|
61 |
#with open(input_path, 'wb') as f:
|
62 |
#f.write(uploaded_file.getbuffer())
|
|
|
46 |
os.makedirs('files')
|
47 |
|
48 |
# Create a temporary folder in streamlit
|
49 |
+
input_path = f'streamlit/files/{uploaded_file.name}'
|
50 |
+
# input_path = f'./files/{uploaded_file.name}'
|
51 |
# input_path = os.path.join('files', uploaded_file.name)
|
52 |
|
53 |
# Create output file
|
54 |
output_file = f'{uploaded_file.name}'.replace('.pdf', '.mmd')
|
55 |
+
# output_path = f'./files/'
|
56 |
+
output_path = f'streamlit/files'
|
57 |
|
58 |
# mmd path
|
59 |
+
# mmd_path = os.path.join('files', output_file)
|
60 |
+
mmd_path = f'streamlit/files/{output_file}'
|
61 |
|
62 |
#with open(input_path, 'wb') as f:
|
63 |
#f.write(uploaded_file.getbuffer())
|