Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
fix(diffusers): fix float detection
There was apparently an oversight, this fixes the float/int detection

Fixes: #6312

Signed-off-by: Ettore Di Giacinto <[email protected]>
  • Loading branch information
mudler authored Sep 19, 2025
commit e4f3a18d261c1ba0206dc49277077a72a406bbcd
2 changes: 1 addition & 1 deletion backend/python/diffusers/backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ def LoadModel(self, request, context):
key, value = opt.split(":")
# if value is a number, convert it to the appropriate type
if is_float(value):
if value.is_integer():
if float(value).is_integer():
value = int(value)
else:
value = float(value)
Expand Down
Loading