This commit is contained in:
ebolam
2023-05-27 08:49:21 -04:00
parent cce5c1932c
commit 47276c3424

View File

@@ -339,6 +339,7 @@ class HFInferenceModel(InferenceModel):
Returns a string of the model's path locally, or None if it is not downloaded. Returns a string of the model's path locally, or None if it is not downloaded.
If ignore_existance is true, it will always return a path. If ignore_existance is true, it will always return a path.
""" """
if self.path is not None:
if os.path.exists(self.path): if os.path.exists(self.path):
return self.path return self.path