Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -1169,6 +1169,12 @@ def handle_large_dataset(df, create_document,isDataFrame):
|
|
| 1169 |
limited_data_without_first_column.insert(0, 'SNo', range(1, len(limited_data) + 1))
|
| 1170 |
# 3. Save the full dataset to a downloadable file
|
| 1171 |
df.to_excel('output_data.xlsx', index=False)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1172 |
#save_file_to_hostinger('output_data.xlsx')
|
| 1173 |
# 4. Create a summary and table of the first 10 rows for display
|
| 1174 |
|
|
|
|
| 1169 |
limited_data_without_first_column.insert(0, 'SNo', range(1, len(limited_data) + 1))
|
| 1170 |
# 3. Save the full dataset to a downloadable file
|
| 1171 |
df.to_excel('output_data.xlsx', index=False)
|
| 1172 |
+
import os
|
| 1173 |
+
|
| 1174 |
+
# Get the current working directory
|
| 1175 |
+
current_folder = os.getcwd()
|
| 1176 |
+
|
| 1177 |
+
print(f"The current folder is: {current_folder}")
|
| 1178 |
#save_file_to_hostinger('output_data.xlsx')
|
| 1179 |
# 4. Create a summary and table of the first 10 rows for display
|
| 1180 |
|