Spaces:
Sleeping
Sleeping
import streamlit as st | |
from streamlit_chat import message | |
from utils import get_initial_message, get_chatgpt_response, update_chat | |
import os | |
from dotenv import load_dotenv | |
load_dotenv() | |
import openai | |
openai.api_key = os.getenv('OPENAI_API_KEY') | |
# Read this, https://blog.futuresmart.ai/building-a-gpt-4-chatbot-using-chatgpt-api-and-streamlit-chat | |