|
@@ -189,6 +189,9 @@ class GPT4o:
|
|
|
if content:
|
|
|
if re.search(r'[a-zA-Z]', content):
|
|
|
content = re.sub(r'[a-zA-Z]', '', content)
|
|
|
+ if "分享引导脚本" in content:
|
|
|
+ parsed_data = json.loads(content.strip('"'))
|
|
|
+ content = parsed_data["分享引导脚本"]
|
|
|
return content
|
|
|
if attempt == max_retries - 1:
|
|
|
return pw_srt_text
|
|
@@ -198,6 +201,6 @@ class GPT4o:
|
|
|
|
|
|
|
|
|
if __name__ == '__main__':
|
|
|
- title = '如果有人跟你说苍蝇不叮无缝的蛋,你怎么回'
|
|
|
+ title = '🔴当代女愚公,13年凿穿大山!功在当代、利在千秋的杰作'
|
|
|
newtitle = GPT4o.get_ai_pw(title)
|
|
|
print(newtitle)
|