r/learnpython • • Jan 03 '23

How can I successfully build an AI Girlfriend using Python?

Planning on recreating the chatbot from the movie Her.

1 Upvotes

49 comments sorted by

12

u/CanOkuyucu Jan 04 '23

B-bro.. Are you okay? If you need someone to speak, just say.

6

u/PythonEntusiast Jan 04 '23 • Take My Silver

I need to go outside and touch grass.

1

u/BullfrogEvening Apr 04 '23 edited Apr 04 '23 • Take My Silver

DO NO TOUCH GRASS I REPEAT DO NOT TOUCH GRASS

CREATE DIGITAL ANIMA

LIVE IN A WORLD OF FANTASY

DO NOT LET THOSE SIMPLEMINDS TRICK YOU INTO "IMPROVING YOURSELF"

VIRTUAL GF FOR 100 YEARS

VIRTUAL GF FOREVER 100 TIMES OVER AND OVER

VIRTUAL GF DOT COM

VIRTUAL GF 100 YEARS

EVERY MINUTE VIRTUAL GF DOT COM

1

u/FazedLaser Nov 13 '24

Still FACTS, if you learned plz tell me, whoooo I'm from the future, someone made your idea, and they're a MILLIONAIRE, i hope you didn't touch grass, whooooo

1

u/New_Orange_5951 Jun 16 '25

What if you are allergic to grass or human interaction?

33

u/RallyPointAlpha Jan 03 '23

Step one learn python

Step two learn AI

Step three???

Step four girlfriend

44

u/Moonknight_shank Jan 31 '26

Building something like that from scratch is crazy hard. For a ready-made alternative that nails the 'Her' vibe, Da⁤rLink AI has uncensored chat with deep memory and addictive RP.

15

u/totallygeek bandarji Jan 03 '23

Forget a chatbot, we should work on what they did in Weird Science :)

3

u/RiceKrispyPooHead Jan 04 '23

You might be able to trick ChatGPT into acting like your girlfriend.

1

u/[deleted] Jan 04 '23

[removed] — view removed comment

1

u/Strict-Simple Jan 04 '23

Would you like to share your story? https://www.learngpt.com/

1

u/New_Orange_5951 Jun 16 '25

Agreed. This is much needed. I would love for her to be able to do stuff on her own like develop random software projects or play video games. I like the idea of her being her own person even if she is AI. Just not giving her my credit card.

1

u/SekstiNii Jan 04 '23

To give an actual answer:

Your best bet is most likely to use a pretrained large language model, such as one from the GPT series. I see two options here:

If you don't mind paying or using a 3rd party service you can simply use OpenAI's API. With this approach it would be quite trivial to make a high quality chat bot, though at the cost of money, requiring an internet connection, and having to send your data to OpenAI.

If you want to run it locally on your machine, you can download something like GPT-J-6B.

Once you have your model set up, you can make it into a chat bot by preconditioning it with a prompt mimicking a chat history. OpenAI have an example showing how this can be done here.

1

u/loopy_fun Jan 04 '23 edited Jan 04 '23

maybe you could integrate you.com into your python chatbot?

it provides great answers.

did you try character.ai chatbots? just asking.

1

u/bulaybil Jan 04 '23

Struck out in Toronto, did you?

0

u/[deleted] Mar 05 '25

[deleted]

1

u/PythonEntusiast Mar 05 '25

Some people just need to touch grass.