Redmind commited on
Commit
b8f860a
·
verified ·
1 Parent(s): 3e3cebb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +13 -0
app.py CHANGED
@@ -1182,6 +1182,19 @@ def handle_large_dataset(df, create_document,isDataFrame):
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')
1186
  # 4. Create a summary and table of the first 10 rows for display
1187
 
 
1182
  files = os.listdir(current_folder)
1183
  print(f"Files in persistent storage: {files}")
1184
  print(f"The current folder is: {current_folder}")
1185
+ from huggingface_hub import Repository
1186
+
1187
+ repo = Repository(
1188
+ local_dir="./",
1189
+ repo_type="space",
1190
+ repo_id=Redmind/NewageNXTGPT,
1191
+ use_auth_token=os.getenv("HF_TOKEN"),
1192
+ )
1193
+
1194
+ file_path = "/home/user/app/output.xlsx"
1195
+ download_url = repo.get_download_url(file_path)
1196
+
1197
+ print(f"Download the file here: {download_url}")
1198
  #save_file_to_hostinger('output_data.xlsx')
1199
  # 4. Create a summary and table of the first 10 rows for display
1200