{"id":18745550,"url":"https://github.com/vpanjeta/what-if","last_synced_at":"2026-05-04T11:39:41.419Z","repository":{"id":216017245,"uuid":"627034718","full_name":"VPanjeta/What-If","owner":"VPanjeta","description":"Answers to your arbitraty history shower thoughts about alternate history","archived":false,"fork":false,"pushed_at":"2023-04-13T16:11:28.000Z","size":765,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-08T12:48:49.946Z","etag":null,"topics":["chatgpt","history","openai","streamlit"],"latest_commit_sha":null,"homepage":"https://whatif2.vpanjeta.uk/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/VPanjeta.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2023-04-12T16:43:49.000Z","updated_at":"2023-05-15T05:16:42.000Z","dependencies_parsed_at":"2024-01-08T02:11:03.612Z","dependency_job_id":"505ce8b2-38f3-4db7-99c5-87cec57983c9","html_url":"https://github.com/VPanjeta/What-If","commit_stats":null,"previous_names":["vpanjeta/what-if"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/VPanjeta/What-If","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VPanjeta%2FWhat-If","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VPanjeta%2FWhat-If/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VPanjeta%2FWhat-If/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VPanjeta%2FWhat-If/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/VPanjeta","download_url":"https://codeload.github.com/VPanjeta/What-If/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VPanjeta%2FWhat-If/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32606406,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-04T10:08:07.713Z","status":"ssl_error","status_checked_at":"2026-05-04T10:08:02.005Z","response_time":58,"last_error":"SSL_read: 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":["chatgpt","history","openai","streamlit"],"created_at":"2024-11-07T16:18:37.727Z","updated_at":"2026-05-04T11:39:41.401Z","avatar_url":"https://github.com/VPanjeta.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# What If?\n\nQ: Why did I do this?  \nA: I was bored and this sounded like a fun thing to do for a couple of hours.\n\n\n## Introduction\n    What if Hitler was accepeted into the Vienna Academy of Fine Arts?  \n    What if the United States never gained independence from Great Britain?  \n    What if aliens actually visited Earth and helped in constructing the pyramids?  \n    What if Napoleon never rose to power in France?\n    What if the Soviet Union won the Cold War?\n    What if the United States never dropped atomic bombs on Japan?\n    What if the Roman Empire never fell?  \nWanna know answer these questions?  \nWell sadly, we'll never know. But now with the power of generative AI, we can explore some possibilities based on an \nalternate fact.   \n\n### Demo\nTry the online demo [here](https://whatif2.vpanjeta.uk/)\n\n---\n\u003cimg src=\"assets/run.gif\" alt=\"Alt_History\"\u003e   \n\n---\n\n**What If?** is a service that allows users to explore alternate history based on an alternate fact. This service prompts \nusers to input a fact or event that could have happened differently, and then generates a new history based on that \nalternate fact. The system generates a detailed timeline of events, incorporating major historical figures, \ntechnological advancements, and societal changes that would have occurred as a result of the altered fact.  \n\n## Features\n- Generate alternate histories based on user input\n- Incorporate major historical figures, technological advancements, and societal changes in the alternate history\n\n## Usage\nTo use What If?, simply input a fact or event that could have happened differently into the prompt, and the system will generate a new history based on that alternate fact.\n\n## Installation\nWhat-If requires docker to run the service.  \nWhat-If uses OpenAI's GPT-4 model to generate the alternate histories (gpt-4 API access requires you to sign up for a waitlist [here](https://openai.com/waitlist/gpt-4-api).  \nTo install What If?, simply clone the repository and run the following command:\n```bash\ngit clone https://github.com/VPanjeta/What-If.git  # Clone the repository\ncd What-If  # Change directory to the repository\nnano Dockerfile  # Edit the Dockerfile to include your OpenAI API key\n# Replace \u003cOPENAI_API_KEY\u003e with your OpenAI API key in the Dockerfile\ndocker build -t streamlit .  # Build the docker image\ndocker run -p 8501:8501 streamlit  # Run the docker image\n```\nBrowse to http://0.0.0.0:8501 to use \"What If?\".\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvpanjeta%2Fwhat-if","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvpanjeta%2Fwhat-if","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvpanjeta%2Fwhat-if/lists"}