MCPcopy Index your code
hub / github.com/mudler/LocalAI / is_float

Function is_float

backend/python/diffusers/backend.py:124–130  ·  view source on GitHub ↗

Check if a string can be converted to float.

(s)

Source from the content-addressed store, hash-verified

122)
123
124def is_float(s):
125 """Check if a string can be converted to float."""
126 try:
127 float(s)
128 return True
129 except ValueError:
130 return False
131def is_int(s):
132 """Check if a string can be converted to int."""
133 try:

Callers 1

LoadModelMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected