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
Check out the sidebar on the app (click the badge on the top of the page) or vist my website to find out more π
Make sure you have docker
installed. You can find instructions on their website here.
To install the project follow the instructions below.
-
Get a free API Key at https://openai.com/
-
Clone the repo
git clone git@github.com:kostyafarber/bad-movies.git
-
Enter your API key in
src/.streamlit/.secrets.toml
OPENAI_API_KEY = 'ENTER YOUR API'
-
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
- Navigate to
localhost:8501
in your web browser and enjoy the hilarity!
Use the drop down button to pick the medium that is used as a basis to generate text. The options are:
movie plot
cover letter
angry email
advertisement
To generate more text again based on the same medium just press this button:
For more information, please refer to my website
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!
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
Distributed under the MIT License. See LICENSE.txt
for more information.
Email: kostya.farber@gmail.com
Project Link: https://kostyafarber.github.io/projects/bad-movies
- Thanks to this article on helping me improve the vanilla Python wordclouds for this project! Good stuff.