@@ -414,12 +414,12 @@ def define_schema(cls) -> IO.Schema:
414414 depends_on = IO .PriceBadgeDepends (widgets = ["engine" ]),
415415 expr = """
416416 widgets.engine = "avatar_iii"
417- ? {"type":"range_usd","min_usd":0.023881 ,"max_usd":0.061919 ,"format":{"suffix":"/second"}}
417+ ? {"type":"range_usd","min_usd":0.0143 ,"max_usd":0.023595 ,"format":{"suffix":"/second"}}
418418 : widgets.engine = "avatar_v"
419- ? {"type":"usd","usd":0.095381 ,"format":{"suffix":"/second"}}
419+ ? {"type":"usd","usd":0.1716 ,"format":{"suffix":"/second"}}
420420 : widgets.engine = "avatar_iv"
421- ? {"type":"range_usd","min_usd":0.0715 ,"max_usd":0.095381 ,"format":{"suffix":"/second"}}
422- : {"type":"range_usd","min_usd":0.023881 ,"max_usd":0.095381 ,"format":{"suffix":"/second"}}
421+ ? {"type":"range_usd","min_usd":0.055055 ,"max_usd":0.115115 ,"format":{"suffix":"/second"}}
422+ : {"type":"range_usd","min_usd":0.0143 ,"max_usd":0.1716 ,"format":{"suffix":"/second"}}
423423 """ ,
424424 ),
425425 )
@@ -522,7 +522,8 @@ def define_schema(cls) -> IO.Schema:
522522 ],
523523 is_api_node = True ,
524524 price_badge = IO .PriceBadge (
525- expr = """{"type":"usd","usd":1.43}""" ,
525+ depends_on = IO .PriceBadgeDepends (widgets = ["source" ]),
526+ expr = """{"type":"usd","usd": widgets.source = "photo" ? 1.8876 : 1.43}""" ,
526527 ),
527528 )
528529
@@ -604,7 +605,7 @@ def define_schema(cls) -> IO.Schema:
604605 "mode" ,
605606 options = ["speed" , "precision" ],
606607 default = "speed" ,
607- tooltip = "'speed' is faster; 'precision' produces higher-quality lip sync at twice the price." ,
608+ tooltip = "'speed' is faster; 'precision' produces higher-quality lip sync at a higher price." ,
608609 ),
609610 IO .Boolean .Input (
610611 "translate_audio_only" ,
@@ -638,8 +639,9 @@ def define_schema(cls) -> IO.Schema:
638639 ],
639640 is_api_node = True ,
640641 price_badge = IO .PriceBadge (
641- depends_on = IO .PriceBadgeDepends (widgets = ["mode" ]),
642- expr = """{"type":"usd","usd": widgets.mode = "precision" ? 0.095381 : 0.047619,"""
642+ depends_on = IO .PriceBadgeDepends (widgets = ["mode" , "translate_audio_only" ]),
643+ expr = """{"type":"usd","usd": widgets.mode = "precision" ? 0.03575 """
644+ """: widgets.translate_audio_only = true ? 0.013585 : 0.019305,"""
643645 """"format":{"suffix":"/second"}}""" ,
644646 ),
645647 )
0 commit comments