mirror of
https://github.com/PaddlePaddle/FastDeploy.git
synced 2025-10-04 16:22:57 +08:00
fix MultimodalRegistry (#3699)
This commit is contained in:
@@ -137,11 +137,7 @@ class ResourceManagerV1(ResourceManager):
|
||||
return num_new_tokens
|
||||
|
||||
inputs = request.multimodal_inputs
|
||||
if (
|
||||
inputs["image_feature_urls"] is not None
|
||||
or inputs["video_feature_urls"] is not None
|
||||
or inputs["audio_feature_urls"] is not None
|
||||
):
|
||||
if inputs["patch_idx"] is not None and inputs["patch_map"] is not None:
|
||||
pre_end_idx = request.num_computed_tokens
|
||||
new_end_idx = pre_end_idx + num_new_tokens
|
||||
# start
|
||||
|
Reference in New Issue
Block a user