Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -78,9 +78,6 @@ DATA_FILENAME = "level2.json"
|
|
78 |
HF_TOKEN = os.environ.get("HF_TOKEN")
|
79 |
st.write("is none?", HF_TOKEN is None)
|
80 |
|
81 |
-
HfApi().delete_file(path_in_repo = DATA_FILENAME ,repo_id = 'Seetha/Visualization',token= HF_TOKEN,repo_type='dataset')
|
82 |
-
st.write('file-deleted')
|
83 |
-
|
84 |
def main():
|
85 |
|
86 |
st.title("Text to Causal Knowledge Graph")
|
@@ -483,6 +480,9 @@ def main():
|
|
483 |
'target': col,
|
484 |
'value': int(df_tab.loc[row, col])
|
485 |
})
|
|
|
|
|
|
|
486 |
fs = HfFileSystem(token=HF_TOKEN)
|
487 |
with fs.open('datasets/Seetha/Visualization.json', 'w') as f:
|
488 |
json.dump(json_data, f)
|
|
|
78 |
HF_TOKEN = os.environ.get("HF_TOKEN")
|
79 |
st.write("is none?", HF_TOKEN is None)
|
80 |
|
|
|
|
|
|
|
81 |
def main():
|
82 |
|
83 |
st.title("Text to Causal Knowledge Graph")
|
|
|
480 |
'target': col,
|
481 |
'value': int(df_tab.loc[row, col])
|
482 |
})
|
483 |
+
|
484 |
+
HfApi().delete_file(path_in_repo = DATA_FILENAME ,repo_id = 'Seetha/Visualization',token= HF_TOKEN,repo_type='dataset')
|
485 |
+
st.write('file-deleted')
|
486 |
fs = HfFileSystem(token=HF_TOKEN)
|
487 |
with fs.open('datasets/Seetha/Visualization.json', 'w') as f:
|
488 |
json.dump(json_data, f)
|