Skip to content

Latest commit

 

History

History
49 lines (34 loc) · 1.13 KB

README.md

File metadata and controls

49 lines (34 loc) · 1.13 KB

summarizer

summarize the content of the URL using Gemini API.

Auth

Refer to https://ai.google.dev/palm_docs/oauth_quickstart

gcloud auth application-default login \
    --client-id-file=client_secret.json \
    --scopes='https://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/generative-language.tuning'

Get Started

Setup Environment

rye sync
rye run playwright install

Summarize the content of the URLs

rye run python src/summarizer/run.py --urls \
    https://www.google.com \
    https://www.yahoo.co.jp \
    --output output.csv

Summarize the content of the PDF files in the GitHub repository

rye run python src/summarizer/run.py --repo_url https://github.com/tangxyw/RecSysPapers --output recsys_papers.csv

Summarize the content of the Kaggle solutions and output to CSV

rye run python src/summarizer/run.py --kaggle_title otto-recommender-system --output otto_solutions.csv

Create a solution matrix for Kaggle solutions

rye run python src/summarizer/matrix.py --input otto_solutions.csv