Update app.py
Browse files
app.py
CHANGED
@@ -53,6 +53,7 @@ def upload_model(base_model_id, tokenizer):
|
|
53 |
fine_tuned_model_id = replace_hf_profile(base_model_id)
|
54 |
login(token=os.environ["HF_TOKEN"])
|
55 |
api = HfApi()
|
|
|
56 |
api.create_repo(repo_id=fine_tuned_model_id)
|
57 |
api.upload_folder(
|
58 |
folder_path=base_model_id,
|
|
|
53 |
fine_tuned_model_id = replace_hf_profile(base_model_id)
|
54 |
login(token=os.environ["HF_TOKEN"])
|
55 |
api = HfApi()
|
56 |
+
api.delete_repo(repo_id=fine_tuned_model_id, repo_type="model")
|
57 |
api.create_repo(repo_id=fine_tuned_model_id)
|
58 |
api.upload_folder(
|
59 |
folder_path=base_model_id,
|