Giter Club home page Giter Club logo

llm_from_here's Introduction

LLM From Here

This repository contains code for the LLM From Here project. The primary goal is to produce an automated podcast generator that can use LLMs to

  • produce shows scripts
  • produce guest lists
  • produce intros

The realization of this script into audio is achieved through the main script, named "ShowRunner", which is a dynamic plugin execution system designed to execute a series of plugin scripts defined in a YAML configuration file. The configuration file should contain the name of the show, global parameters, and a list of plugin specifications. Each plugin is executed in order and its results are stored in a global dictionary. To optimize performance, plugin results can be cached in a SQLite database and reloaded in subsequent runs if their specifications haven't changed, unless the cache is explicitly cleared. The plugin execution can be retried in case of validation or assertion errors. The system manages logging of activities and errors, and organizes outputs in unique folders named after the show and run count. Finally, the merged global results from all plugins are dumped into a YAML file in the output folder.

The episodes get generated and posted by Github Actions and can be found at https://llmfromhere.podbean.com/.

Getting Started

These instructions will help you set up the project environment using Conda.

Prerequisites

  • Python 3.10
  • pip
  • ffmpeg

Setup

  1. Clone the repository:

    git clone https://github.com/mibass/llm_from_here.git
    
  2. Change into the project directory:

    cd llm_from_here
    
  3. Create a virtual environment (optional but recommended):

    python -m venv venv
    
  4. Activate the newly created environment:

    source venv/bin/activate
    

    (Replace venv with the name of the environment)

  5. Install the project dependencies:

    pip install -r requirements.txt
    

Configuration

.env

This project uses dotenv to set environment variables. Keys are needed for:

  • google v3 youtube api YT_API_KEY
  • freesound api FREESOUND_API_KEY
  • openai OPENAI_API_KEY

Usage

To run the script, execute the following command:

python script_name.py config.yaml [--clear-cache, --outputs-dir]

Optional flags:

--clear-cache: Use this flag to clear the plugin cache before execution.
--outputs-dir: Use this flag to specify the directory where outputs should be stored. Default is ./outputs.

Make sure to provide the path to your YAML configuration file. The script will execute plugins defined in the YAML file, store results in the output folder, and log the execution details.

llm_from_here's People

Contributors

mibass avatar matt-bass-human avatar

Stargazers

 avatar

Watchers

 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.