nolanzandi's picture
Rename main.py to app.py
b57f1a1 verified
raw
history blame
329 Bytes
from functions import demo
import os
from getpass import getpass
from dotenv import load_dotenv
load_dotenv()
if "OPENAI_API_KEY" not in os.environ:
os.environ["OPENAI_API_KEY"] = getpass("Enter OpenAI API key:")
## Uncomment the line below to launch the chat app with UI
demo.launch(debug=True, share=True)