Commit
•
4883d00
1
Parent(s):
89cbf51
fix: add oauth token to pipeline upload
Browse files
src/distilabel_dataset_generator/apps/sft.py
CHANGED
@@ -183,7 +183,7 @@ def upload_pipeline_code(
|
|
183 |
path_in_repo="pipeline.py",
|
184 |
repo_id=f"{org_name}/{repo_name}",
|
185 |
repo_type="dataset",
|
186 |
-
token=oauth_token,
|
187 |
commit_message="Include pipeline script",
|
188 |
)
|
189 |
progress(1.0, desc="Pipeline code uploaded")
|
@@ -401,7 +401,7 @@ with gr.Blocks(
|
|
401 |
inputs=[final_dataset, private, org_name, repo_name],
|
402 |
outputs=[final_dataset],
|
403 |
show_progress=True,
|
404 |
-
).then(
|
405 |
fn=upload_pipeline_code,
|
406 |
inputs=[pipeline_code, org_name, repo_name],
|
407 |
outputs=[],
|
|
|
183 |
path_in_repo="pipeline.py",
|
184 |
repo_id=f"{org_name}/{repo_name}",
|
185 |
repo_type="dataset",
|
186 |
+
token=oauth_token.token,
|
187 |
commit_message="Include pipeline script",
|
188 |
)
|
189 |
progress(1.0, desc="Pipeline code uploaded")
|
|
|
401 |
inputs=[final_dataset, private, org_name, repo_name],
|
402 |
outputs=[final_dataset],
|
403 |
show_progress=True,
|
404 |
+
).then().then(
|
405 |
fn=upload_pipeline_code,
|
406 |
inputs=[pipeline_code, org_name, repo_name],
|
407 |
outputs=[],
|