Skip to content

Commit c27da0a

Browse files
authored
fix(diffusers): fix float detection (#6313)
There was apparently an oversight, this fixes the float/int detection Fixes: #6312 Signed-off-by: Ettore Di Giacinto <[email protected]>
1 parent ac043ed commit c27da0a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

backend/python/diffusers/backend.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ def LoadModel(self, request, context):
177177
key, value = opt.split(":")
178178
# if value is a number, convert it to the appropriate type
179179
if is_float(value):
180-
if value.is_integer():
180+
if float(value).is_integer():
181181
value = int(value)
182182
else:
183183
value = float(value)

0 commit comments

Comments
 (0)