Skip to content

Instantly share code, notes, and snippets.

View AdonisCodes's full-sized avatar
🐥
Debug Ducky

Simon Ferns AdonisCodes

🐥
Debug Ducky
View GitHub Profile
@AdonisCodes
AdonisCodes / ConsolePY.py
Last active November 18, 2023 06:46
Easily write colourful terminal apps without knowing the ASCII escape codes!
import json
from typing import List
from enum import Enum
# Create a Enum for the different types of properties
class Property(Enum):
BLACK = 'black'
RED = 'red'
GREEN = 'green'
# Create all imports
import os
from langchain.document_loaders.figma import FigmaFileLoader
from langchain.chat_models import ChatOpenAI
from langchain.indexes import VectorstoreIndexCreator
from langchain.prompts.chat import (
ChatPromptTemplate,
SystemMessagePromptTemplate,
HumanMessagePromptTemplate,