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') | |
# keys are here: https://platform.openai.com/auth/callback?code=ReZ4izEw0DwkUKrHR-Opxr5AMMgo9SojxC9pNHQUcjD6M&state=OGZFNDJmLlJGNlIwOUxlakpXZkVFfjNxNy02ZlFtLWN4eUcuOXJobXouSQ%3D%3D# | |
# Read this, https://blog.futuresmart.ai/building-a-gpt-4-chatbot-using-chatgpt-api-and-streamlit-chat | |