Spaces:
Running
Running
Commit
·
dc6fb3f
1
Parent(s):
5731488
file upload
Browse files
app.py
CHANGED
|
@@ -282,7 +282,7 @@ def save_uploaded_file(directory, img_file):
|
|
| 282 |
# Assuming the uploaded file is an image
|
| 283 |
with Image.open(img_file) as image:
|
| 284 |
# Save the image with a jpg extension
|
| 285 |
-
image.save(os.path.join(directory, img_file.name), "
|
| 286 |
|
| 287 |
def delete_directory(dir_path):
|
| 288 |
try:
|
|
|
|
| 282 |
# Assuming the uploaded file is an image
|
| 283 |
with Image.open(img_file) as image:
|
| 284 |
# Save the image with a jpg extension
|
| 285 |
+
image.save(os.path.join(directory, img_file.name), "JPEG")
|
| 286 |
|
| 287 |
def delete_directory(dir_path):
|
| 288 |
try:
|