Redmind commited on
Commit
ef63548
·
verified ·
1 Parent(s): 0b5c3f9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -1179,7 +1179,7 @@ def handle_large_dataset(df, create_document,isDataFrame):
1179
  df.to_excel(file_path, index=False)
1180
 
1181
 
1182
- file_path = "output_data.xlsx"
1183
  #download_url = repo.get_download_url(file_path)
1184
  create_file_HF(file_path)
1185
  print("File created in the home path")
@@ -1219,7 +1219,7 @@ def create_file_HF(file_path):
1219
 
1220
  from huggingface_hub import HfApi
1221
  api = HfApi()
1222
- api.upload_file(path_or_fileobj=file_path, repo_id="Redmind/NewageNXTGPT_Repo_trial",revision = "test-branch", repo_type= "space", path_in_repo='output')
1223
 
1224
 
1225
  def create_pdf(cname,ename,account_number):
 
1179
  df.to_excel(file_path, index=False)
1180
 
1181
 
1182
+ #file_path = "output_data.xlsx"
1183
  #download_url = repo.get_download_url(file_path)
1184
  create_file_HF(file_path)
1185
  print("File created in the home path")
 
1219
 
1220
  from huggingface_hub import HfApi
1221
  api = HfApi()
1222
+ api.upload_file(path_or_fileobj=file_path, repo_id="Redmind/NewageNXTGPT_Repo_trial",revision = "test-branch", repo_type= "space", path_in_repo='output_data.xlsx')
1223
 
1224
 
1225
  def create_pdf(cname,ename,account_number):