File tree Expand file tree Collapse file tree 1 file changed +12
-12
lines changed Expand file tree Collapse file tree 1 file changed +12
-12
lines changed Original file line number Diff line number Diff line change @@ -101,18 +101,18 @@ def convert_to_parquet(
101
101
except HfHubHTTPError :
102
102
pass
103
103
104
- if merge_pull_request :
105
- # NOTE: this will only merge the last PR in the case that push_to_hub decides to split them up.
106
- # see https://github.com/huggingface/datasets/discussions/7555
107
- api .merge_pull_request (
108
- repo_id ,
109
- commit_info .pr_num ,
110
- token = token ,
111
- repo_type = "dataset" ,
112
- )
113
- print (f"Pull request { pr_revision } merged." )
114
- else :
115
- print (f"You can find your PR to convert the dataset to Parquet at: { pr_url } " )
104
+ if merge_pull_request :
105
+ # NOTE: this will only merge the last PR in the case that push_to_hub decides to split them up.
106
+ # see https://github.com/huggingface/datasets/discussions/7555
107
+ api .merge_pull_request (
108
+ repo_id ,
109
+ commit_info .pr_num ,
110
+ token = token ,
111
+ repo_type = "dataset" ,
112
+ )
113
+ print (f"Pull request { pr_revision } merged." )
114
+ else :
115
+ print (f"You can find your PR to convert the dataset to Parquet at: { pr_url } " )
116
116
return commit_info
117
117
118
118
You can’t perform that action at this time.
0 commit comments