BART-ender commited on
Commit
75da07d
·
verified ·
1 Parent(s): 83df01b

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. server/tasks.py +1 -1
server/tasks.py CHANGED
@@ -97,7 +97,7 @@ TASKS: Dict[str, TaskDefinition] = {
97
  }
98
 
99
 
100
- def _clamp(value: float, low: float = 0.0, high: float = 1.0) -> float:
101
  """Clamp a value to [low, high]."""
102
  return max(low, min(high, value))
103
 
 
97
  }
98
 
99
 
100
+ def _clamp(value: float, low: float = 0.0001, high: float = 0.9999) -> float:
101
  """Clamp a value to [low, high]."""
102
  return max(low, min(high, value))
103