jbilcke-hf HF staff commited on
Commit
6f20d2d
·
verified ·
1 Parent(s): 3cf299c

Update handler.py

Browse files
Files changed (1) hide show
  1. handler.py +2 -2
handler.py CHANGED
@@ -391,8 +391,8 @@ class EndpointHandler:
391
  - quality (optional, str, default to 18): The range of the CRF scale is 0–51, where 0 is lossless (for 8 bit only, for 10 bit use -qp 0), 23 is the default, and 51 is worst quality possible.
392
  - enable_teacache (optional, bool, default to True): Generate faster at the cost of a slight quality loss
393
  - teacache_threshold (optional, float, default to 0.15): Amount of cache
394
- - enable_enhance_a_video=params.get("enhance_enable_enhance_a_video", True),
395
- - enhance_a_video_weight=params.get("enhance_a_video_weight", 4.0),
396
 
397
  Returns:
398
  Dictionary containing:
 
391
  - quality (optional, str, default to 18): The range of the CRF scale is 0–51, where 0 is lossless (for 8 bit only, for 10 bit use -qp 0), 23 is the default, and 51 is worst quality possible.
392
  - enable_teacache (optional, bool, default to True): Generate faster at the cost of a slight quality loss
393
  - teacache_threshold (optional, float, default to 0.15): Amount of cache
394
+ - enable_enhance_a_video (optional, bool, default to True): enable the enhance_a_video optimization
395
+ - enhance_a_video_weight(optional, float, default to 4.0): amount of video enhancement to apply
396
 
397
  Returns:
398
  Dictionary containing: