import os # Init with fake key if 'OPENAI_API_KEY' not in os.environ: os.environ['OPENAI_API_KEY'] = 'none' import openai import pandas as pd import streamlit as st from IPython.core.display import HTML from PIL import Image from langchain.callbacks import wandb_tracing_enabled from chemcrow.agents import ChemCrow, make_tools from chemcrow.frontend.streamlit_callback_handler import \ StreamlitCallbackHandlerChem from utils import oai_key_isvalid from dotenv import load_dotenv load_dotenv() ss = st.session_state ss.prompt = None icon = Image.open('assets/logo0.png') st.set_page_config( page_title="ChemCrow", page_icon = icon ) # Set width of sidebar st.markdown( """