Update app.py
Browse files
app.py
CHANGED
|
@@ -7,14 +7,13 @@ import os
|
|
| 7 |
import pandas as pd
|
| 8 |
import shutil
|
| 9 |
|
| 10 |
-
folder_path = "/
|
| 11 |
|
| 12 |
-
#
|
| 13 |
if not os.path.exists(folder_path):
|
| 14 |
os.makedirs(folder_path)
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
print(f"Folder '{folder_path}' already exists.")
|
| 18 |
|
| 19 |
def clr_static():
|
| 20 |
"""
|
|
|
|
| 7 |
import pandas as pd
|
| 8 |
import shutil
|
| 9 |
|
| 10 |
+
folder_path = "/tmp/Upload" # Use /tmp instead of root
|
| 11 |
|
| 12 |
+
# Ensure the folder structure exists
|
| 13 |
if not os.path.exists(folder_path):
|
| 14 |
os.makedirs(folder_path)
|
| 15 |
+
|
| 16 |
+
print(f"Directory created at {folder_path}")
|
|
|
|
| 17 |
|
| 18 |
def clr_static():
|
| 19 |
"""
|