Giter VIP home page Giter VIP logo

gf-blogger's Introduction

Getting Started

Install

Pull Repo

git clone https://github.com/ledgerW/gf-blogger.git

Python

  1. Install Anaconda

  2. Create a virtual conda environment for this project:
    From project root: conda env create -f environment.yml
    Activate env: activate gf-blogger

.env

Get API keys for the below services and put them in the .env (below)
OpenAI
Serper

Populate goldfinch_blogger/.env.template and rename to .env (keep in goldfinch_blogger/)

Input

There are two examples:

  • goldfinch_blogger/outline.txt
  • goldfinch_blogger/section.txt

The SECTION: string is used for parsing sections, so it must be used. Just keep the format in the examples, but otherwise anything can go in the section description.

These are the input for the "blog writer". The file can be called anything. A relative path to it will be passed to the "blog writer" CLI from the terminal

Output

Output will be found in goldfinch_blogger/new_post/ (it will be created). It will produce the final blog post, which will be called blog.txt, as well as files containing individual sections and the final prompts containing all the stuffed context for each section, which will located in goldfinch_blogger/new_post/sections/.

Example Usage

from ./goldfinch_blogger: python GoldfinchBlogger.py --outline_path outline.txt


Notes

  • Here's an example of how all this can be deployed fully serverless with backend and frontend CI/CD using Seed and Vercel...
    Oxpecker
    (This is a private repo - I'll send you an invite)

gf-blogger's People

Watchers

Ledger West avatar

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.