Skip to content

Instantly share code, notes, and snippets.

@fsndzomga
Created September 4, 2023 13:16
Show Gist options
  • Save fsndzomga/e009e948b2be9558e8057693cd3c4769 to your computer and use it in GitHub Desktop.
Save fsndzomga/e009e948b2be9558e8057693cd3c4769 to your computer and use it in GitHub Desktop.
Simple usage of Spacy LLM
from keys import OPENAI_API_KEY
import os
from spacy_llm.util import assemble
os.environ["OPENAI_API_KEY"] = OPENAI_API_KEY
nlp = assemble("config.cfg")
doc = nlp("You are an idiot !")
print(doc.cats)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment