Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/vpanjeta/what-if
Answers to your arbitraty history shower thoughts about alternate history
https://github.com/vpanjeta/what-if
chatgpt history openai streamlit
Last synced: about 1 month ago
JSON representation
Answers to your arbitraty history shower thoughts about alternate history
- Host: GitHub
- URL: https://github.com/vpanjeta/what-if
- Owner: VPanjeta
- License: apache-2.0
- Created: 2023-04-12T16:43:49.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-04-13T16:11:28.000Z (almost 2 years ago)
- Last Synced: 2024-11-07T16:18:47.064Z (3 months ago)
- Topics: chatgpt, history, openai, streamlit
- Language: Python
- Homepage: https://whatif2.vpanjeta.uk/
- Size: 747 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# What If?
Q: Why did I do this?
A: I was bored and this sounded like a fun thing to do for a couple of hours.## Introduction
What if Hitler was accepeted into the Vienna Academy of Fine Arts?
What if the United States never gained independence from Great Britain?
What if aliens actually visited Earth and helped in constructing the pyramids?
What if Napoleon never rose to power in France?
What if the Soviet Union won the Cold War?
What if the United States never dropped atomic bombs on Japan?
What if the Roman Empire never fell?
Wanna know answer these questions?
Well sadly, we'll never know. But now with the power of generative AI, we can explore some possibilities based on an
alternate fact.### Demo
Try the online demo [here](https://whatif2.vpanjeta.uk/)---
---
**What If?** is a service that allows users to explore alternate history based on an alternate fact. This service prompts
users to input a fact or event that could have happened differently, and then generates a new history based on that
alternate fact. The system generates a detailed timeline of events, incorporating major historical figures,
technological advancements, and societal changes that would have occurred as a result of the altered fact.## Features
- Generate alternate histories based on user input
- Incorporate major historical figures, technological advancements, and societal changes in the alternate history## Usage
To 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.## Installation
What-If requires docker to run the service.
What-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).
To install What If?, simply clone the repository and run the following command:
```bash
git clone https://github.com/VPanjeta/What-If.git # Clone the repository
cd What-If # Change directory to the repository
nano Dockerfile # Edit the Dockerfile to include your OpenAI API key
# Replace with your OpenAI API key in the Dockerfile
docker build -t streamlit . # Build the docker image
docker run -p 8501:8501 streamlit # Run the docker image
```
Browse to http://0.0.0.0:8501 to use "What If?".