Spaces:
Sleeping
Sleeping
Akshay Kumar BM commited on
Update app.py
Browse files
app.py
CHANGED
|
@@ -16,15 +16,15 @@ from dotenv import load_dotenv
|
|
| 16 |
|
| 17 |
class ContentProcessor:
|
| 18 |
def __init__(self):
|
| 19 |
-
load_dotenv()
|
| 20 |
-
self.configure_environment()
|
| 21 |
self.configure_streamlit()
|
| 22 |
|
| 23 |
def configure_environment(self):
|
| 24 |
-
|
| 25 |
-
|
| 26 |
-
|
| 27 |
-
|
| 28 |
|
| 29 |
def configure_streamlit(self):
|
| 30 |
st.set_page_config(page_title="LangChain: Process Content from Multiple Sources", page_icon="🦜")
|
|
|
|
| 16 |
|
| 17 |
class ContentProcessor:
|
| 18 |
def __init__(self):
|
| 19 |
+
#load_dotenv()
|
| 20 |
+
#self.configure_environment()
|
| 21 |
self.configure_streamlit()
|
| 22 |
|
| 23 |
def configure_environment(self):
|
| 24 |
+
os.environ['LANGCHAIN_API_KEY'] = os.getenv("LANGCHAIN_API_KEY")
|
| 25 |
+
os.environ['LANGCHAIN_TRACING_V2'] = "true"
|
| 26 |
+
os.environ['LANGCHAIN_PROJECT'] = "LangChain: Process Content from Multiple Sources"
|
| 27 |
+
os.environ["LANGCHAIN_ENDPOINT"] = "https://api.smith.langchain.com"
|
| 28 |
|
| 29 |
def configure_streamlit(self):
|
| 30 |
st.set_page_config(page_title="LangChain: Process Content from Multiple Sources", page_icon="🦜")
|