Seetha commited on
Commit
e0d2b17
·
1 Parent(s): 53c11ba

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -14
app.py CHANGED
@@ -484,10 +484,6 @@ def main():
484
  'target': col,
485
  'value': int(df_tab.loc[row, col])
486
  })
487
- # base_url = "https://huggingface.co/datasets/Seetha/visual_files/tree/main"
488
- # dataset = load_dataset(base_url, data_files='https://huggingface.co/datasets/Seetha/visual_files/blob/main/level2.json')
489
-
490
- #st.write(dataset)
491
 
492
  # Write JSON to file
493
  #with open(DATA_FILE, 'w') as f: #w+
@@ -496,16 +492,7 @@ def main():
496
  with open(DATASET_REPO_URL,'w') as f:
497
  st.write(f)
498
  f.write(json.dump(json_data))
499
- #json.dump(json_data, f)
500
- #repo.push_to_hub()
501
- # commit_url = repo.push_to_hub()
502
- # st.write(commit_url)
503
- #dataset = load_dataset("seetha/visual_files")
504
- #repo.push_to_hub("level2.json")
505
- # # repo.git_pull()
506
- # # repo.git_add("ch.json")
507
- # # repo.git_commit(commit_message="add ch.json :)")
508
- # # repo.push()
509
 
510
  df_final1.to_csv('predictions.csv')
511
  csv_file = "predictions.csv"
 
484
  'target': col,
485
  'value': int(df_tab.loc[row, col])
486
  })
 
 
 
 
487
 
488
  # Write JSON to file
489
  #with open(DATA_FILE, 'w') as f: #w+
 
492
  with open(DATASET_REPO_URL,'w') as f:
493
  st.write(f)
494
  f.write(json.dump(json_data))
495
+
 
 
 
 
 
 
 
 
 
496
 
497
  df_final1.to_csv('predictions.csv')
498
  csv_file = "predictions.csv"