Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -1148,7 +1148,7 @@ def handle_large_dataset(df, create_document,isDataFrame):
|
|
1148 |
print(f"Total rows: {total_rows}")
|
1149 |
|
1150 |
#docstatus = f"Download the complete dataset <a href='https://huggingface.co/spaces/Redmind/NewageNXTGPT/blob/main/assets/output.xlsx' download> here.</a>.There are total of {total_rows} rows."
|
1151 |
-
docstatus = f"Download the complete dataset <a href='/
|
1152 |
if total_rows < 4000:
|
1153 |
|
1154 |
# 1. Limit to first 10 rows
|
@@ -1184,9 +1184,9 @@ def handle_large_dataset(df, create_document,isDataFrame):
|
|
1184 |
|
1185 |
file_path = os.path.join(current_folder, 'output_data.xlsx')
|
1186 |
df.to_excel(file_path, index=False)
|
1187 |
-
if not os.path.exists("/data/"):
|
1188 |
-
os.makedirs("/data/")
|
1189 |
-
df.to_excel('/data/output_data.xlsx', index=False)
|
1190 |
|
1191 |
files = os.listdir(current_folder)
|
1192 |
print(f"Files in persistent storage: {files}")
|
|
|
1148 |
print(f"Total rows: {total_rows}")
|
1149 |
|
1150 |
#docstatus = f"Download the complete dataset <a href='https://huggingface.co/spaces/Redmind/NewageNXTGPT/blob/main/assets/output.xlsx' download> here.</a>.There are total of {total_rows} rows."
|
1151 |
+
docstatus = f"Download the complete dataset <a href='https://redmindtechnologies.com/RedMindGPT/ouput.zip' download> here.</a>.There are total of {total_rows} rows."
|
1152 |
if total_rows < 4000:
|
1153 |
|
1154 |
# 1. Limit to first 10 rows
|
|
|
1184 |
|
1185 |
file_path = os.path.join(current_folder, 'output_data.xlsx')
|
1186 |
df.to_excel(file_path, index=False)
|
1187 |
+
#if not os.path.exists("/data/"):
|
1188 |
+
#os.makedirs("/data/")
|
1189 |
+
#df.to_excel('/data/output_data.xlsx', index=False)
|
1190 |
|
1191 |
files = os.listdir(current_folder)
|
1192 |
print(f"Files in persistent storage: {files}")
|