Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -1109,14 +1109,14 @@ def handle_large_dataset(df):
|
|
| 1109 |
# 3. Save the full dataset to a downloadable file
|
| 1110 |
# Get the current working directory
|
| 1111 |
current_directory = os.getcwd()
|
| 1112 |
-
print(f"current_directory:
|
| 1113 |
# Define the filename
|
| 1114 |
filename = 'output_data.xlsx'
|
| 1115 |
|
| 1116 |
# Create the complete path by joining the current directory with the filename
|
| 1117 |
file_path = os.path.join(current_directory, filename)
|
| 1118 |
|
| 1119 |
-
print(f"file path:
|
| 1120 |
df.to_excel(file_path, index=False)
|
| 1121 |
save_file_to_hostinger(file_path)
|
| 1122 |
# 4. Create a summary and table of the first 10 rows for display
|
|
|
|
| 1109 |
# 3. Save the full dataset to a downloadable file
|
| 1110 |
# Get the current working directory
|
| 1111 |
current_directory = os.getcwd()
|
| 1112 |
+
print(f"current_directory:{current_directory}")
|
| 1113 |
# Define the filename
|
| 1114 |
filename = 'output_data.xlsx'
|
| 1115 |
|
| 1116 |
# Create the complete path by joining the current directory with the filename
|
| 1117 |
file_path = os.path.join(current_directory, filename)
|
| 1118 |
|
| 1119 |
+
print(f"file path:{file_path}")
|
| 1120 |
df.to_excel(file_path, index=False)
|
| 1121 |
save_file_to_hostinger(file_path)
|
| 1122 |
# 4. Create a summary and table of the first 10 rows for display
|