jackycedar commited on
Commit
9a05f78
·
1 Parent(s): acfcac6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -214,9 +214,10 @@ def on_token_change(user_token):
214
  def pdfv1(files, chainType):
215
 
216
  newPath = home_path
217
- new_name = "t1"
 
218
  # Separate file name and extension
219
- name, ext = os.path.splitext(files.name)
220
  # Concatenate new name and original extension
221
  new_path = os.path.join(newPath, new_name + ext)
222
  # Move file to new location with new name
 
214
  def pdfv1(files, chainType):
215
 
216
  newPath = home_path
217
+ new_name = 't1'
218
+ ext = 'pdf'
219
  # Separate file name and extension
220
+ # name, ext = os.path.splitext(files.name)
221
  # Concatenate new name and original extension
222
  new_path = os.path.join(newPath, new_name + ext)
223
  # Move file to new location with new name