Giter VIP home page Giter VIP logo

pere-bodul's Introduction

Père Bodul

Père Bodul est une application web simple qui génère des histoires pour enfants en utilisant l'API ChatGPT.

Fonctionnalités

  • Permet de spécifier plusieurs paramètres pour personnaliser l'histoire :
    • Un héros
    • Un méchant
    • Le lieu de l'histoire
    • Des objets à incorporer dans l'histoire

Prérequis

Pour faire fonctionner l'application, vous avez besoin de :

  • Go (version 1.16 ou supérieure)
  • Une clé API pour l'API OpenAI

Installation

  1. Clonez ce dépôt sur votre machine locale.
  2. Installez les dépendances en exécutant go get dans le répertoire du projet.
  3. Configurez la clé API OpenAI en définissant la variable d'environnement OPENAI_KEY.
  4. Configurez la clé d'accès à l'API Google Cloud en fournissant le fichier JSON en définissant les variables d'environnement GCP_KEY (contenu du fichier JSON) et en définissant la clé GCP_PROJECT_ID.

Utilisation

  1. Exécutez le serveur en lançant go run main.go.
  2. Ouvrez un navigateur web et accédez à http://localhost:8080.
  3. Remplissez le formulaire avec vos préférences pour l'histoire et cliquez sur "Générer l'histoire".
  4. L'histoire générée s'affichera sous le formulaire.

Licence

Ce projet est sous licence MIT. Pour plus de détails, voir le fichier LICENSE.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.