Skip to content

This project uses the OpenAI and Unsplash APIs to generate a poetic phrase and display a background image.

License

Notifications You must be signed in to change notification settings

mohammadshahidbeigh/poetic-phrase-generator

Repository files navigation

Poetic Phrase Generator

Screenshot_20230803_003721

Description

The Poetic Phrase Generator is a web application that generates poetic phrases and combines them with beautiful images based on your favorite activity and place. It utilizes the OpenAI GPT-3 model to generate insightful, witty, and satirical phrases in the style of Oscar Wilde. The app fetches random images from Unsplash to match the mood of the generated quotes. Simply input your name, favorite activity, and favorite place, and let the app create a unique poetic phase for you.

Getting Started!

To run the Poetic Phrase Generator locally on your machine, follow these steps:

  1. Clone this repository to your local machine using Git.
  2. Open the index.html file in your web browser.
  3. Customize the name, favoriteActivity, favoritePlace, and temperature variables in the index.js file to personalize your poetic phrases.

For Quick start:

$ npm install
$ npm start

Technologies Used

  • HTML
  • CSS (with Normalize.css)
  • JavaScript (ES6)
  • OpenAI GPT-3 API
  • Unsplash API
  • Google Fonts (Old Standard TT, Balsamiq Sans, Cinzel, Inconsolata, Sora, Lobster, Metal Mania, MuseoModerno, Noto Sans HK, Pacifico)

Features

  • Personalized poetic phrases generated in the style of Oscar Wilde.
  • Beautiful images fetched from Unsplash to complement the generated quotes.
  • Dynamic background based on the chosen place.
  • Easy customization of name, favorite activity, and favorite place.
  • Responsive design for a seamless experience on various devices.

Usage

  1. Open the Poetic Phrase Generator in your web browser.
  2. Enter your name, favorite activity, and favorite place.
  3. Adjust the temperature slider to control the creativity of the generated phrases.
  4. Click the "Generate" button to see the poetic phrase and image.
  5. Enjoy the delightful combinations of poetic phrases and images!

Contributing

We welcome contributions to improve the Poetic Phrase Generator. To contribute, follow these steps:

  1. Fork the repository.
  2. Create a new branch for your feature or bug fix .
  3. Commit your changes and push them to your fork.
  4. Submit a pull request to the original repository.

License

This project is licensed under the MIT License.

Feel inspired and enjoy the poetic phrases with the Poetic Phase Generator!

About

This project uses the OpenAI and Unsplash APIs to generate a poetic phrase and display a background image.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published