bllin001 commited on
Commit
92744cd
·
verified ·
1 Parent(s): f9cd363

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -5
app.py CHANGED
@@ -46,17 +46,18 @@ if uploaded_file:
46
  os.makedirs('files')
47
 
48
  # Create a temporary folder in streamlit
49
- # input_path = uploaded_file.read()
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
- # mmd_path = f'./files/{output_file}'
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())