Spaces:
Sleeping
Sleeping
Commit
·
98a2ece
1
Parent(s):
0e84f13
Fix cloning issue and update dataset push URL
Browse files
app.py
CHANGED
|
@@ -18,9 +18,9 @@ def clone_into_temp_dir(github_repo_url):
|
|
| 18 |
return Repo.clone_from(github_repo_url, temp_dir), temp_dir
|
| 19 |
|
| 20 |
|
| 21 |
-
repo = clone_into_temp_dir("https://github.com/chen-zichen/XplainLLM_dataset/")
|
| 22 |
|
| 23 |
-
clone_into_temp_dir("https://github.com/chen-zichen/XplainLLM_dataset/")
|
| 24 |
|
| 25 |
|
| 26 |
def upload_directory_to_hf(
|
|
@@ -74,7 +74,7 @@ def push_to_hf(
|
|
| 74 |
)
|
| 75 |
gr.Info("Syncing with Hugging Face Hub...Done")
|
| 76 |
temporary_directory.cleanup()
|
| 77 |
-
return f"Pushed the dataset to [{destination_hf_hub_repository}](https://huggingface.co/datasets{destination_hf_hub_repository})"
|
| 78 |
|
| 79 |
|
| 80 |
def extract_user_name_and_repo_from_url(github_url: str):
|
|
|
|
| 18 |
return Repo.clone_from(github_repo_url, temp_dir), temp_dir
|
| 19 |
|
| 20 |
|
| 21 |
+
# repo = clone_into_temp_dir("https://github.com/chen-zichen/XplainLLM_dataset/")
|
| 22 |
|
| 23 |
+
# clone_into_temp_dir("https://github.com/chen-zichen/XplainLLM_dataset/")
|
| 24 |
|
| 25 |
|
| 26 |
def upload_directory_to_hf(
|
|
|
|
| 74 |
)
|
| 75 |
gr.Info("Syncing with Hugging Face Hub...Done")
|
| 76 |
temporary_directory.cleanup()
|
| 77 |
+
return f"Pushed the dataset to [{destination_hf_hub_repository}](https://huggingface.co/datasets/{destination_hf_hub_repository})"
|
| 78 |
|
| 79 |
|
| 80 |
def extract_user_name_and_repo_from_url(github_url: str):
|