jackycedar commited on
Commit
acfcac6
·
1 Parent(s): 71baa59

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -4
app.py CHANGED
@@ -229,10 +229,11 @@ def pdfv1(files, chainType):
229
  def pdfv2(files, chainType):
230
 
231
  newPath = home_path
232
- new_name = "t2"
233
- # Separate file name and extension
234
- name, ext = os.path.splitext(files.name)
235
- # Concatenate new name and original extension
 
236
  new_path = os.path.join(newPath, new_name + ext)
237
  # Move file to new location with new name
238
  os.rename(files.name, new_path)
 
229
  def pdfv2(files, chainType):
230
 
231
  newPath = home_path
232
+ new_name = 't2'
233
+ ext = 'pdf'
234
+ # # Separate file name and extension
235
+ # name, ext = os.path.splitext(files.name)
236
+ # # Concatenate new name and original extension
237
  new_path = os.path.join(newPath, new_name + ext)
238
  # Move file to new location with new name
239
  os.rename(files.name, new_path)