# chain.py from langchain.chat_models import ChatOpenAI from langchain.chains import LLMChain from dotenv import load_dotenv from prompts import description_prompt
output = description_chain.predict(topic="Cats are cool") print(output)
这是输出结果:
1 2 3
😻 Unleash your inner feline aficionado! From their enchanting eyes to their purrfectly mysterious ways, cats are the epitome of coolness. 🐾 Watch as they effortlessly own their spaces, teaching us the art of relaxation and play. Whether they're mastering acrobatics or curling up for a catnap, their cool vibes are undeniable. 😎 Join the cat craze and embrace the awesomeness of these four-legged trendsetters! 🐱💫 #CatsRule #CoolCats #FelineVibes 中文翻译:😻 释放你内心的猫咪爱好者!从他们迷人的眼睛到他们完美的神秘方式,猫咪是酷的象征。🐾 观察他们如何毫不费力地拥有自己的空间,教我们放松和玩耍的艺术。无论他们是在掌握杂技还是卷起来打个猫觉,他们的酷劲是无法否认的。😎 加入猫咪狂热,拥抱这些四足潮流引领者的酷炫!🐱💫 #猫咪统治 #酷猫 #猫咪氛围
# chain.py from langchain.chat_models import ChatOpenAI from langchain.chains import LLMChain from dotenv import load_dotenv # this line changed!!!!! from prompts import description_prompt, script_prompt
[Opening shot: A close-up of a cat's mesmerizing eyes, slowly blinking.] Narrator (Voiceover): "😻 Unleash your inner feline aficionado!" [Cut to a sleek cat walking confidently through a room, tail swaying gracefully.] Narrator (Voiceover): "From their enchanting eyes to their purrfectly mysterious ways..." [Transition to a montage of cats lounging in different relaxed poses.] Narrator (Voiceover): "Cats are the epitome of coolness. 🐾" [Show a cat effortlessly jumping onto a high shelf, landing with precision.] Narrator (Voiceover): "Watch as they effortlessly own their spaces..." [Cut to a person lying on the couch while a cat playfully bats at a string toy.] Narrator (Voiceover): "Teaching us the art of relaxation and play." [Show a cat doing a graceful mid-air flip while chasing a feather toy.] Narrator (Voiceover): "Whether they're mastering acrobatics..." [Transition to a cozy scene of a cat curled up in a sunlit spot, eyes half-closed.] Narrator (Voiceover): "Or curling up for a catnap..." [Cut to a group of cats with various personalities and fur patterns.] Narrator (Voiceover): "Their cool vibes are undeniable." [Show a person petting a content cat, both sharing a moment of connection.] Narrator (Voiceover): "😎 Join the cat craze and embrace the awesomeness..." [Cut to a playful cat chasing its tail, accompanied by a cheerful laugh.] Narrator (Voiceover): "...of these four-legged trendsetters!" [End with a shot of a cat sitting regally, gazing confidently into the camera.] Narrator (Voiceover): "🐱💫 #CatsRule #CoolCats #FelineVibes"
[Fade out with a final glimpse of a cat's eyes.] Narrator (Voiceover): "Because when it comes to cool, cats wrote the book." [End screen: "Follow for more feline fun!"] [Background music fades out as the TikTok video concludes.] 中文翻译:[切换到一个玩耍的猫追逐它的尾巴的镜头,伴随着一阵欢快的笑声。] 旁白(配音):"...这些四足的潮流引领者!" [以一只猫坐得像皇族一样,自信地凝视着摄像机的镜头结束。] 旁白(配音):"🐱💫 #猫咪统治 #酷猫 #猫咪氛围" [以猫眼的最后一瞥淡出。] 旁白(配音):"因为当谈到酷,猫咪写下了规则。" [结束画面:"关注更多的猫咪乐趣!"] [随着TikTok视频的结束,背景音乐渐渐淡出。]
# chain.py from langchain.chat_models import ChatOpenAI from langchain.chains import LLMChain, SimpleSequentialChain from dotenv import load_dotenv # this line changed!!!!! from prompts import description_prompt, script_prompt
A trendy, upbeat song begins playing as the camera pans across a stylishly decorated living room. Various cat-themed decorations can be seen, setting the perfect atmosphere for showcasing the undeniable coolness of cats.
CUT TO:
INT. BEDROOM - DAY
A YOUNG WOMAN, in her early twenties, stands in front of a full-length mirror. She wears trendy clothes and holds a CAT, who seems equally as cool, in her arms.
YOUNG WOMAN (looking into the mirror) Ready to show the world why cats rule!
The young woman gently places the cat on the ground as the camera zooms in on the feline.
CUT TO:
INT. KITCHEN - DAY
A CAT sits on the kitchen counter, effortlessly balancing on one paw while wearing sunglasses. The camera pans around it, capturing its cool demeanor.
CUT TO:
INT. BACKYARD - DAY
A CAT lounges in a hammock, wearing a tiny hat and reading a book. The camera captures its relaxed and sophisticated vibe.
CUT TO:
INT. LIVING ROOM - DAY
The young woman sits on the couch, surrounded by a group of COOL CATS. Each cat showcases their unique coolness, like one wearing a leather jacket and another playing a tiny electric guitar.
YOUNG WOMAN (points to the cats) See? Cats rule!
The camera zooms in on the cats, showing their undeniable feline awesomeness.
CUT TO:
INT. LIVING ROOM - DAY
The young woman and her cool cats gather around a table, where they enjoy a mini-cat party. There are cat-themed snacks, funky drinks, and even a DJ cat scratching vinyl records.
CUT TO:
INT. LIVING ROOM - DAY
The young woman holds up a sign saying "#CoolCatsRule" as the cats pose beside her. The camera pans out to reveal a fun, energetic dance routine as they all groove to the beat.
CUT TO:
INT. LIVING ROOM - DAY
The young woman and her cool cats strike a final pose, with the camera capturing their undeniable coolness.
YOUNG WOMAN (looking at the camera) Remember, folks, cats rule!
The screen fades out with the hashtag #CoolCatsRule displayed prominently.