Spaces:
Paused
Paused
Gagan Bhatia commited on
Commit ·
8c9bd43
1
Parent(s): 478facf
Update model.py
Browse files- src/models/model.py +3 -0
src/models/model.py
CHANGED
|
@@ -557,3 +557,6 @@ class Summarization:
|
|
| 557 |
hf_password = getpass("Enter your HuggingFace password")
|
| 558 |
if Path("./models").exists():
|
| 559 |
shutil.rmtree("./models")
|
|
|
|
|
|
|
|
|
|
|
|
| 557 |
hf_password = getpass("Enter your HuggingFace password")
|
| 558 |
if Path("./models").exists():
|
| 559 |
shutil.rmtree("./models")
|
| 560 |
+
token = HfApi().login(username=hf_username, password=hf_password)
|
| 561 |
+
del hf_password
|
| 562 |
+
model_url = HfApi().create_repo(token=token, name=model_name, exist_ok=True)
|