Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -1193,10 +1193,19 @@ def handle_large_dataset(df, create_document,isDataFrame):
|
|
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="/
|
1200 |
))
|
1201 |
|
1202 |
print(f"Download the file here: {download_url}")
|
|
|
1193 |
|
1194 |
file_path = "/home/user/app/output.xlsx"
|
1195 |
#download_url = repo.get_download_url(file_path)
|
1196 |
+
|
1197 |
+
from huggingface_hub import upload_file
|
1198 |
+
|
1199 |
+
# Upload file to the Hugging Face Hub
|
1200 |
+
repo_id = "Redmind/NewageNXTGPT"
|
1201 |
+
#file_path = "/app/example.txt" # Path to the file to upload
|
1202 |
+
|
1203 |
+
upload_file(path_or_fileobj=file_path, repo_id=repo_id, path_in_repo="output/output.xlsx")
|
1204 |
+
|
1205 |
from huggingface_hub import hf_hub_url
|
1206 |
|
1207 |
print(hf_hub_url(
|
1208 |
+
repo_id="Redmind/NewageNXTGPT", filename="output/output.xlsx"
|
1209 |
))
|
1210 |
|
1211 |
print(f"Download the file here: {download_url}")
|