bllin001 commited on
Commit
5f90c3e
·
verified ·
1 Parent(s): 859e738

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -6
app.py CHANGED
@@ -50,18 +50,18 @@ if uploaded_file:
50
  os.makedirs('files')
51
 
52
  # Create a temporary folder in streamlit
53
- input_path = './streamlit/files/{uploaded_file.name}'
54
- # input_path = f'./files/{uploaded_file.name}'
55
  # input_path = os.path.join('files', uploaded_file.name)
56
 
57
  # Create output file
58
  output_file = f'{uploaded_file.name}'.replace('.pdf', '.mmd')
59
- # output_path = f'./files/'
60
- output_path = './streamlit/files'
61
 
62
  # mmd path
63
- # mmd_path = os.path.join('files', output_file)
64
- mmd_path = ./streamlit/files/{output_file}'
65
 
66
  with open(input_path, 'wb') as f:
67
  f.write(uploaded_file.getbuffer())
 
50
  os.makedirs('files')
51
 
52
  # Create a temporary folder in streamlit
53
+ # input_path = './streamlit/files/{uploaded_file.name}'
54
+ input_path = f'./files/{uploaded_file.name}'
55
  # input_path = os.path.join('files', uploaded_file.name)
56
 
57
  # Create output file
58
  output_file = f'{uploaded_file.name}'.replace('.pdf', '.mmd')
59
+ output_path = f'./files/'
60
+ # output_path = './streamlit/files'
61
 
62
  # mmd path
63
+ mmd_path = os.path.join('files', output_file)
64
+ # mmd_path = ./streamlit/files/{output_file}'
65
 
66
  with open(input_path, 'wb') as f:
67
  f.write(uploaded_file.getbuffer())