Skip to content

Instantly share code, notes, and snippets.

View lpabon's full-sized avatar

Luis Pabón lpabon

View GitHub Profile
@lpabon
lpabon / mdtest.md
Created July 24, 2023 20:14
mdtest asdfas dfasdf

Hello

sub heading

  • asdf

Try this:

python -m venv venv
diff --git a/.gitignore b/.gitignore
index cd5cc6c..13466b5 100644
--- a/.gitignore
+++ b/.gitignore
@@ -3,4 +3,7 @@ venv
__pycache__
*.pyc
*.txt
+*.wav
+*.mp3
diff --git a/ai_presenter/ai_presenter.py b/ai_presenter/ai_presenter.py
index 0da30d6..170412c 100644
--- a/ai_presenter/ai_presenter.py
+++ b/ai_presenter/ai_presenter.py
@@ -10,63 +10,18 @@ class AIPresenter:
self.generator = g
def run(self):
- self.__run_text_ai()
- self.__run_voice_ai()

Using the playground, not the chat:

https://platform.openai.com/playground

NOTES

  • use 'continue' to get more dialogue
  • some JSON will be unfinished. clean up and use 'continue' for N number of times, or until the JSON is complete (curly brace is closed)

EXAMPLE

Initial setup:

@lpabon
lpabon / actor.diff
Created June 21, 2023 14:10
adding voice actor
diff --git a/ai_presenter/voice_ai/base.py b/ai_presenter/voice_ai/base.py
index 716c9a9..d5c6db1 100644
--- a/ai_presenter/voice_ai/base.py
+++ b/ai_presenter/voice_ai/base.py
@@ -3,11 +3,21 @@ from ai_presenter.config.voice import VoiceConfig
import logging
+class VoiceAIActor:
+ def __init__(self, config):
@lpabon
lpabon / info.md
Created June 5, 2023 14:05
Chatgpt help of ai presenter

Now in the yaml definition there are actors, locations, and scenes. actors have names, description, voice type, age, height. locations have type of outside, or inside, mountains, cabin, etc. Locations also have lighting. Scenes have actors in a location with multiple dialog

actors:
  - name: John Doe
    description: A charismatic detective
    voice_type: Baritone
    age: 35
    height: 6 feet
@lpabon
lpabon / sample.md
Created June 17, 2022 15:14
Sample gist doc

Big heading

Here is a paragraph:

  1. hasdf
  2. asdf
  3. asdf
  4. adsf
@lpabon
lpabon / ratelimit.go
Last active May 22, 2022 23:30
Testing out rate limiting
package main
import (
"fmt"
"math/rand"
"sync"
"time"
"golang.org/x/time/rate"
)
@lpabon
lpabon / reverse.java
Created April 4, 2022 00:21
Reverse a linked list without using new in java
public static Node reverse(Node list) {
Node n;
Node head;
if (list == null) {
return null;
}
@lpabon
lpabon / kubectl-createuser
Last active August 19, 2020 00:21
Kubectl plugin to create a user
#!/bin/bash
#
# Install into an executable script on your path called kubectl-createuser, then
# you can use it as follows:
#
# kubectl createuser lpabon
#
# Implementation of the blog: https://www.openlogic.com/blog/granting-user-access-your-kubernetes-cluster