{"id":23450764,"url":"https://github.com/basedrhys/quote-gen","last_synced_at":"2026-03-20T01:26:52.115Z","repository":{"id":129516697,"uuid":"200425247","full_name":"basedrhys/quote-gen","owner":"basedrhys","description":"Novel quote generator using GPT-2","archived":false,"fork":false,"pushed_at":"2020-12-03T04:12:11.000Z","size":586,"stargazers_count":3,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-10T12:51:04.957Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/basedrhys.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-08-03T22:10:43.000Z","updated_at":"2022-09-19T21:40:18.000Z","dependencies_parsed_at":"2023-06-01T13:46:05.439Z","dependency_job_id":null,"html_url":"https://github.com/basedrhys/quote-gen","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/basedrhys/quote-gen","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/basedrhys%2Fquote-gen","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/basedrhys%2Fquote-gen/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/basedrhys%2Fquote-gen/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/basedrhys%2Fquote-gen/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/basedrhys","download_url":"https://codeload.github.com/basedrhys/quote-gen/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/basedrhys%2Fquote-gen/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28626267,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-21T02:47:06.670Z","status":"ssl_error","status_checked_at":"2026-01-21T02:45:44.886Z","response_time":86,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-24T00:15:01.014Z","updated_at":"2026-01-21T04:33:21.769Z","avatar_url":"https://github.com/basedrhys.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# AI-Powered Quote Generator\nNovel quote generator using GPT-2. The app is currently hosted [here](https://basedrhys.github.io/quote-gen), feel free to play around!.\n\nThis project was based off minimaxir's [gpt-2-cloud-run](https://github.com/minimaxir/gpt-2-cloud-run) project.\n\n## Frontend\n\nThe web interface is based off the UI in minimaxir's repo. It's hosted using Github pages which is great for simple static hosting.\n\n## Backend\n\nThe API is hosted using Google Cloud Run, Google's Docker container serving service. It's probably one of the easiest ways to easily deploy custom ML models for inference, and again has automatic scaling down to 0 instances (for the cost-mindful like myself).\n\n## Train Your Own\n\nThe dataset was sourced from the [500k Quote Dataset](https://github.com/ShivaliGoel/Quotes-500K), with a little pre-processing to get it into the right format.\n\nFollow the steps outlined in the [training instructions](./backend/train/README.md)\n\n[Quote Dataset](https://drive.google.com/file/d/18fUCkPeVkC3MiOji5K8rzU9jXvZfC1Im/view?usp=sharing)\n\n[Colab Notebook](https://colab.research.google.com/drive/1dy1lj6uFmgvsiaHxjNwy3A1wI9W0PmwW)\n\nAlso, look at minimaxir's [Colab notebook](https://colab.research.google.com/drive/1VLG8e7YSEwypxU-noRNhsv5dW4NfTGce) for more instruction in using the library.\n\n## Quote Samples\n\n- **Life**: When you have the ability to have a life, you should have the choice to live it. - Roy T. Bennett\n- **Love**: I'm sorry, but I can't be serious anymore. I can't give you your heart, and I'd rather give you my heart. - James Patterson\n- **Inspirational**: I have never held in my hands any that I did not know. - Paulo Coelho\n- **Inspirational**: The best way to survive a long, long time is to only see what happens to you. - Steve Maraboli\n\nAs you can see, generating quotes is a *little* difficult for the GPT2 model, at least with this dataset. Many of them sound quite good (and dare I say it **deep**). However, the limitations of current transformer-based language models become very apparent in this instance: the model can generate quotes with perfect syntax that sound like perfect english, however, they often are non-sensical or contradicting. The value in quotes is often derived from their word-play and clever use of the english language, which the model doesn't have a firm knowledge of. Despite this, it's still an interesting experiment, and raises some deeper questions about what makes quotes actually *deep* or *resounding* with us, and whether these can be feigned by AI.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbasedrhys%2Fquote-gen","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbasedrhys%2Fquote-gen","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbasedrhys%2Fquote-gen/lists"}