Spaces:
Running
Running
Commit
·
70ed15d
1
Parent(s):
e4ff6d1
clean imports
Browse files
app.py
CHANGED
|
@@ -5,21 +5,12 @@ if 'OPENAI_API_KEY' not in os.environ:
|
|
| 5 |
os.environ['OPENAI_API_KEY'] = 'none'
|
| 6 |
|
| 7 |
import pandas as pd
|
| 8 |
-
import requests
|
| 9 |
import streamlit as st
|
| 10 |
from IPython.core.display import HTML
|
| 11 |
-
from langchain.agents import AgentType, initialize_agent, load_tools
|
| 12 |
-
from langchain.chat_models import ChatOpenAI
|
| 13 |
from PIL import Image
|
| 14 |
-
from rmrkl import ChatZeroShotAgent, RetryAgentExecutor
|
| 15 |
-
|
| 16 |
from chemcrow.agents import ChemCrow, make_tools
|
| 17 |
-
from chemcrow.agents.prompts import (FORMAT_INSTRUCTIONS, QUESTION_PROMPT,
|
| 18 |
-
SUFFIX)
|
| 19 |
from chemcrow.frontend.streamlit_callback_handler import \
|
| 20 |
StreamlitCallbackHandlerChem
|
| 21 |
-
from langchain.callbacks import StreamlitCallbackHandler
|
| 22 |
-
from chemcrow.frontend.utils import cdk
|
| 23 |
|
| 24 |
from dotenv import load_dotenv
|
| 25 |
|
|
|
|
| 5 |
os.environ['OPENAI_API_KEY'] = 'none'
|
| 6 |
|
| 7 |
import pandas as pd
|
|
|
|
| 8 |
import streamlit as st
|
| 9 |
from IPython.core.display import HTML
|
|
|
|
|
|
|
| 10 |
from PIL import Image
|
|
|
|
|
|
|
| 11 |
from chemcrow.agents import ChemCrow, make_tools
|
|
|
|
|
|
|
| 12 |
from chemcrow.frontend.streamlit_callback_handler import \
|
| 13 |
StreamlitCallbackHandlerChem
|
|
|
|
|
|
|
| 14 |
|
| 15 |
from dotenv import load_dotenv
|
| 16 |
|