Spaces:
Runtime error
Runtime error
Commit ·
acfcac6
1
Parent(s): 71baa59
Update app.py
Browse files
app.py
CHANGED
|
@@ -229,10 +229,11 @@ def pdfv1(files, chainType):
|
|
| 229 |
def pdfv2(files, chainType):
|
| 230 |
|
| 231 |
newPath = home_path
|
| 232 |
-
new_name =
|
| 233 |
-
|
| 234 |
-
|
| 235 |
-
#
|
|
|
|
| 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)
|