Skip to content

Latest commit

 

History

History
29 lines (18 loc) · 962 Bytes

README.md

File metadata and controls

29 lines (18 loc) · 962 Bytes

Autosummarized HN

This is Hacker News with one-sentence summaries automatically generated by GPT-3.

Running it

Prerequisites

You’ll need Clojure CLI tools. You also need to have access to the OpenAI API.

Steps

  1. (Optional) Edit the configuration. The defaults should work out-of-the-box, except that some links will point to my deployed instance.
  2. In your terminal, run the following (substitute the key with your own, which you can get from OpenAI’s dashboard):
OPENAI_KEY=[sk_your_key] clojure -X summhn.core/run

Notes

This code uses my Skyscraper library to fetch and cache the data. Successfully running this code will produce a Skyscraper cache in ~/skyscraper-data.