Is there a way to use an input_number as variable for gauge card segments?

Yes but only if you use something like this: