Generates questions and answers from the passage provided by the user.
👉QA-Generator: https://chatgpt-translator-2b3f3.web.app
- Q&A generator web app powered by OpenAIs ChatGPT, built on Streamlit and deployed on Google Cloud
- Install the required libraries
pip install -r requirements.txt
- Create an OpenAI account and generate API key
- Create an .env file to store the API key
- Modify the inputs and prompt according to the usage
- Deploy the app on Google Cloud (need to install GCloud SDK: https://cloud.google.com/sdk/docs/install)
👉 login
gcloud auth login
👉 initialize (create/select a project)
gcloud inti
👉 build a container (need Docker)
gcloud builds submit --tag gcr.io/<project-id>/<docker-container-name>
👉 deploy the container
gcloud run deploy --image gcr.io/<project-id>/<docker-container-name> --set-env-vars "Key=Value"
🥳 Congratulations 👏