A "female" computer falls madly in love with a man (film prior to 2007)

Saw this movie on TV when I was a kid. It always stuck in my mind.

Nothing particularly amazing about this film; possibly it was just a TV movie.

What I remember is a man working with a computer AI program. They talk, and the program falls in love with the man. Then, I think the AI tries to kill the wife/partner of the protagonist—or at least replace her—and make the man fall in love with it.

I don’t know if it could be categorized as horror/terror; maybe just suspense.

Thanks!