Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -1176,15 +1176,10 @@ def handle_large_dataset(df, create_document,isDataFrame):
|
|
1176 |
current_folder = os.getcwd()
|
1177 |
|
1178 |
|
1179 |
-
# Define the persistent storage directory
|
1180 |
-
persistent_dir = "/persistent"
|
1181 |
|
1182 |
-
|
1183 |
-
os.makedirs(persistent_dir, exist_ok=True)
|
1184 |
-
|
1185 |
-
file_path = os.path.join(persistent_dir, 'output_data.xlsx')
|
1186 |
df.to_excel(file_path, index=False)
|
1187 |
-
files = os.listdir(
|
1188 |
print(f"Files in persistent storage: {files}")
|
1189 |
print(f"The current folder is: {current_folder}")
|
1190 |
#save_file_to_hostinger('output_data.xlsx')
|
|
|
1176 |
current_folder = os.getcwd()
|
1177 |
|
1178 |
|
|
|
|
|
1179 |
|
1180 |
+
file_path = os.path.join(current_folder, 'output_data.xlsx')
|
|
|
|
|
|
|
1181 |
df.to_excel(file_path, index=False)
|
1182 |
+
files = os.listdir(current_folder)
|
1183 |
print(f"Files in persistent storage: {files}")
|
1184 |
print(f"The current folder is: {current_folder}")
|
1185 |
#save_file_to_hostinger('output_data.xlsx')
|