Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -525,8 +525,8 @@ def main():
|
|
| 525 |
'target': col,
|
| 526 |
'value': int(df_tab.loc[row, col])
|
| 527 |
})
|
| 528 |
-
base_url = "https://huggingface.co/datasets/Seetha/visual_files/tree/main"
|
| 529 |
-
dataset = load_dataset(base_url, data_files='https://huggingface.co/datasets/Seetha/visual_files/blob/main/level2.json')
|
| 530 |
|
| 531 |
st.write(dataset)
|
| 532 |
|
|
@@ -534,7 +534,8 @@ def main():
|
|
| 534 |
with open(DATA_FILE, 'w') as f: #w+
|
| 535 |
json.dump(json_data, f)
|
| 536 |
#repo.push_to_hub()
|
| 537 |
-
|
|
|
|
| 538 |
#dataset = load_dataset("seetha/visual_files")
|
| 539 |
#repo.push_to_hub("level2.json")
|
| 540 |
# # repo.git_pull()
|
|
|
|
| 525 |
'target': col,
|
| 526 |
'value': int(df_tab.loc[row, col])
|
| 527 |
})
|
| 528 |
+
# base_url = "https://huggingface.co/datasets/Seetha/visual_files/tree/main"
|
| 529 |
+
# dataset = load_dataset(base_url, data_files='https://huggingface.co/datasets/Seetha/visual_files/blob/main/level2.json')
|
| 530 |
|
| 531 |
st.write(dataset)
|
| 532 |
|
|
|
|
| 534 |
with open(DATA_FILE, 'w') as f: #w+
|
| 535 |
json.dump(json_data, f)
|
| 536 |
#repo.push_to_hub()
|
| 537 |
+
commit_url = repo.push_to_hub()
|
| 538 |
+
st.write(commit_url)
|
| 539 |
#dataset = load_dataset("seetha/visual_files")
|
| 540 |
#repo.push_to_hub("level2.json")
|
| 541 |
# # repo.git_pull()
|