prateekralhan / Streamlit-ChatGPT-DALLE-2

A simple streamlit based webapp using OpenAI APIs empowered with text generation and image generation functionalities

Home Page:https://streamlit-chatgpt-dalle2.onrender.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

✨ Streamlit based ChatGPT/DALLE-2 Project Status: Active

A simple streamlit based webapp using OpenAI APIs empowered with text generation and image generation functionalities

demo_txt

demo_img

Installation:

  • Simply run the command pip install -r requirements.txt to install the dependencies.

Usage:

  1. Clone this repository and install the dependencies as mentioned above.
  2. Navigate to the OpenAI API section to login and generate your API Key. Ensure you save this API Key as "OpenAI_API_Key"* in the form of a system environment variable which shall be used by the webapp. ( I am only using the Free Trial version which provides 18$ of credits. )
  3. Simply run the command:
streamlit run app.py
  1. Navigate to http://localhost:8501 in your web-browser.

Results:

1

2

Running the Dockerized App

  1. Ensure you have Docker Installed and Setup in your OS (Windows/Mac/Linux). For detailed Instructions, please refer this.
  2. Navigate to the folder where you have cloned this repository ( where the Dockerfile is present ).
  3. Build the Docker Image (don't forget the dot!! 😄 ):
docker build -f Dockerfile -t app:latest .
  1. Run the docker:
docker run -p 8501:8501 app:latest

This will launch the dockerized app. Navigate to http://localhost:8501/ in your browser to have a look at your application. You can check the status of your all available running dockers by:

docker ps

About

A simple streamlit based webapp using OpenAI APIs empowered with text generation and image generation functionalities

https://streamlit-chatgpt-dalle2.onrender.com

License:MIT License


Languages

Language:Python 81.3%Language:Dockerfile 10.9%Language:Shell 6.5%Language:Procfile 1.3%