Spaces:
Runtime error
Runtime error
Update gen_client.py
Browse filesupdate internal oss path
- gen_client.py +3 -1
gen_client.py
CHANGED
@@ -425,7 +425,9 @@ class HumanGenService:
|
|
425 |
prompt_caption_data['payload'] = {}
|
426 |
prompt_caption_data['payload']['input'] = {}
|
427 |
prompt_caption_data['payload']['input']['work_type'] = 'prompt_caption'
|
428 |
-
|
|
|
|
|
429 |
prompt_caption_data['payload']['input']['key'] = sign_vid_oss_path
|
430 |
prompt_caption_data['payload']['parameters'] = {}
|
431 |
prompt_caption_data['payload']['parameters']['input_type'] = 'reference_video' # id_image,cartoon_id_image,reference_video
|
|
|
425 |
prompt_caption_data['payload'] = {}
|
426 |
prompt_caption_data['payload']['input'] = {}
|
427 |
prompt_caption_data['payload']['input']['work_type'] = 'prompt_caption'
|
428 |
+
oss_endpoint_seg = OSSEndpoint[:-len(".aliyuncs.com")]
|
429 |
+
sign_vid_oss_path = oss_endpoint_seg + '-internal' + sign_vid_oss_path[len(oss_endpoint_seg):]
|
430 |
+
print(f"request_id: {request_id}, video internal oss path for caption: {sign_vid_oss_path}")
|
431 |
prompt_caption_data['payload']['input']['key'] = sign_vid_oss_path
|
432 |
prompt_caption_data['payload']['parameters'] = {}
|
433 |
prompt_caption_data['payload']['parameters']['input_type'] = 'reference_video' # id_image,cartoon_id_image,reference_video
|