{"id":13877834,"url":"https://github.com/e-tornike/Story_Generator","last_synced_at":"2025-07-16T13:32:41.613Z","repository":{"id":115464084,"uuid":"307501677","full_name":"e-tornike/Story_Generator","owner":"e-tornike","description":"A Streamlit web app that generates Rick and Morty stories using GPT2.","archived":true,"fork":false,"pushed_at":"2023-02-20T10:11:58.000Z","size":303,"stargazers_count":40,"open_issues_count":0,"forks_count":8,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-10-31T13:33:02.460Z","etag":null,"topics":["gpt2","huggingface-transformers","machine-learning","natural-language-processing","streamlit"],"latest_commit_sha":null,"homepage":"https://share.streamlit.io/e-tony/story_generator/main/app.py","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/e-tornike.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2020-10-26T20:53:41.000Z","updated_at":"2024-09-18T13:12:40.000Z","dependencies_parsed_at":null,"dependency_job_id":"74aaa662-5e9d-4d80-a486-28f2e430b33d","html_url":"https://github.com/e-tornike/Story_Generator","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/e-tornike%2FStory_Generator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/e-tornike%2FStory_Generator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/e-tornike%2FStory_Generator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/e-tornike%2FStory_Generator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/e-tornike","download_url":"https://codeload.github.com/e-tornike/Story_Generator/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":226134226,"owners_count":17578778,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["gpt2","huggingface-transformers","machine-learning","natural-language-processing","streamlit"],"created_at":"2024-08-06T08:01:28.067Z","updated_at":"2024-11-24T06:31:32.666Z","avatar_url":"https://github.com/e-tornike.png","language":"Python","funding_links":[],"categories":["Python"],"sub_categories":[],"readme":"# Rick and Morty Story Generator\n[![Open in Streamlit](https://static.streamlit.io/badges/streamlit_badge_black_white.svg)](https://share.streamlit.io/e-tony/story_generator/main/app.py)\n\nThis project uses a [pre-trained GPT2 model](https://huggingface.co/gpt2), which was fine-tuned on [Rick and Morty transcripts](https://rickandmorty.fandom.com/wiki/Category:Transcripts), to generate new stories in the form of a dialog. The project uses Hugging Face's [Transformers library](https://github.com/huggingface/transformers) to do inference and [Streamlit](https://www.streamlit.io/) for the application. \n\nTry out the [demo](https://share.streamlit.io/e-tony/story_generator/main/app.py) to generate fun stories or read the blog [post](https://towardsdatascience.com/rick-and-morty-story-generation-with-gpt2-using-transformers-and-streamlit-in-57-lines-of-code-8f81a8f92692) on how to create your own story generator.\n\n### Fine-tuning a custom model\n\nYou can fine-tune your own model using Google Colab [![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/drive/1opXtwhZ02DjdyoVlafiF3Niec4GqPJvC?usp=sharing)\n\n### Setup\n\nThis repository has only been tested with Python 3.7. \n\nInstall the dependencies in a virtual environment:\n```\npython3.7 -m venv venv\nsource venv/bin/activate\npip install --upgrade pip setuptools\npip install -r requirements.txt\n```\n\nOn the first run, the app will download the pre-trained model from Hugging Face's Model Hub or you can supply your own custom model in the `load_model()` function. To start the application, simply run:\n```\nstreamlit run app.py\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fe-tornike%2FStory_Generator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fe-tornike%2FStory_Generator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fe-tornike%2FStory_Generator/lists"}