Skip to content

Commit 1773631

Browse files
committed
fix(loadModel): revision = None if revision == "" else revision
1 parent 620e370 commit 1773631

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

api/loadModel.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@
2626

2727
def loadModel(model_id: str, load=True, precision=None, revision=None):
2828
torch_dtype = torch_dtype_from_precision(precision)
29+
if revision == "":
30+
revision = None
31+
2932
print(
3033
"loadModel",
3134
{

0 commit comments

Comments
 (0)