jiayong commited on
Commit
d840a8d
1 Parent(s): 4c0f52e

Update gen_client.py

Browse files

update internal oss path

Files changed (1) hide show
  1. 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
- sign_vid_oss_path = 'https://vigen-invi.oss-cn-shanghai-internal' + sign_vid_oss_path[len('https://vigen-invi.oss-cn-shanghai'):]
 
 
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