Gagan Bhatia commited on
Commit
478facf
·
1 Parent(s): 76b1521

Update model.py

Browse files
Files changed (1) hide show
  1. src/models/model.py +3 -0
src/models/model.py CHANGED
@@ -554,3 +554,6 @@ class Summarization:
554
  return output
555
 
556
  def upload(self, hf_username, model_name):
 
 
 
 
554
  return output
555
 
556
  def upload(self, hf_username, model_name):
557
+ hf_password = getpass("Enter your HuggingFace password")
558
+ if Path("./models").exists():
559
+ shutil.rmtree("./models")