/tldr-with-gemini

Document Summarizer AI with Gemini

Primary LanguageJavaGNU General Public License v3.0GPL-3.0

TL;DR with Gemini

Document Summarizer AI with Google Gemini image

How to run

There are several ways to run this application. But firstly -

  1. Go to Google AI Studio and generate your API Key.
  2. Store the key somewhere safe.

Run with JRE/JDK

  1. Download JDK / JRE (version 21 recommended) from here and install it.
  2. Download the JAR from the release page.
  3. Run like this in your shell:
    $ java -jar -DAPI_KEY=<your_api_key> tldr-0.0.1-SNAPSHOT.jar
  4. Visit localhost:8080 and enjoy!

Run with Docker

  1. Download and install docker.
  2. Download the source code.
  3. Open a shell and go inside the source code directory.
  4. Run the following commands to build and run the application:
    $ docker build -t tldr .
    $ docker run -it -p 8080:8080 -e API_KEY='<your_api_key' tldr
  5. Visit localhost:8080 and enjoy!