Skip to content

kostyafarber/b-movie-text-generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

45 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation


Logo

B-Movie Text Generator

Streamlit App

This app uses openai's gpt-3 to generate hilarious text based on keywords from random awful b-movies.
Explore the docs Β»

View Demo Β· Report Bug Β· Request Feature

Table of Contents
  1. About The Project
  2. Getting Started
  3. Usage
  4. Roadmap
  5. Contributing
  6. License
  7. Contact
  8. Acknowledgments

About The Project

Product Name Screen Shot

(back to top)

Built With

(back to top)

How Did This Get Made?

Check out the sidebar on the app (click the badge on the top of the page) or vist my website to find out more 😏

Local Installation

Prerequisites

Make sure you have docker installed. You can find instructions on their website here.

Installation

To install the project follow the instructions below.

  1. Get a free API Key at https://openai.com/

  2. Clone the repo

    git clone git@github.com:kostyafarber/bad-movies.git
  3. Enter your API key in src/.streamlit/.secrets.toml

    OPENAI_API_KEY = 'ENTER YOUR API'
  4. Make sure you are at the root

β”œβ”€β”€ Dockerfile
β”œβ”€β”€ README.md
β”œβ”€β”€ docker-compose.yml
β”œβ”€β”€ notebooks
β”‚   └── bad-movies-eda.ipynb
β”œβ”€β”€ requirements.txt
└── src
  β”œβ”€β”€ app
  β”‚   β”œβ”€β”€ data.py
  β”‚   β”œβ”€β”€ generator.py
  β”‚   β”œβ”€β”€ main.py
  β”‚   β”œβ”€β”€ movie.py
  β”‚   β”œβ”€β”€ text_preprocessing.py
  β”‚   └── utils.py
  β”œβ”€β”€ assets
  β”‚   └── images
  β”‚       β”œβ”€β”€ 7black.png
  β”‚       β”œβ”€β”€ puzzle.png
  β”‚       └── zoltare-laptop.gif
  β”œβ”€β”€ data
  β”‚   β”œβ”€β”€ processed
  β”‚   β”‚   └── trash_df.pkl
  β”‚   └── raw
  β”‚       β”œβ”€β”€ notes.txt
  β”‚       β”œβ”€β”€ trash-movie-list.txt
  β”‚       └── wiki_movie_plots_deduped.csv
  └── fonts
      └── TestFoundersGrotesk-Bold.otf

Build and run the container with docker-compose

docker-compose -f docker-compose.yml up --build               
  1. Navigate to localhost:8501 in your web browser and enjoy the hilarity!

(back to top)

Usage

Options

Use the drop down button to pick the medium that is used as a basis to generate text. The options are:

different options

  • movie plot
  • cover letter
  • angry email
  • advertisement

Take Another Spin

To generate more text again based on the same medium just press this button:

generate button

For more information, please refer to my website

(back to top)

Contributing

Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.

If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

(back to top)

License

Distributed under the MIT License. See LICENSE.txt for more information.

(back to top)

Contact

Email: kostya.farber@gmail.com

Project Link: https://kostyafarber.github.io/projects/bad-movies

(back to top)

Acknowledgments

  • Thanks to this article on helping me improve the vanilla Python wordclouds for this project! Good stuff.

(back to top)

About

What if a robot πŸ€– could write b-movies? Well look no further, this web app will answer this question and more.

Topics

Resources

Stars

Watchers

Forks

Languages