Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -1187,12 +1187,17 @@ def handle_large_dataset(df, create_document,isDataFrame):
|
|
1187 |
repo = Repository(
|
1188 |
local_dir="./",
|
1189 |
repo_type="space",
|
1190 |
-
repo_id="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')
|
|
|
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 |
+
from huggingface_hub import hf_hub_url
|
1197 |
+
|
1198 |
+
print(hf_hub_url(
|
1199 |
+
repo_id="Redmind/NewageNXTGPT", filename="output.xlsx"
|
1200 |
+
))
|
1201 |
|
1202 |
print(f"Download the file here: {download_url}")
|
1203 |
#save_file_to_hostinger('output_data.xlsx')
|