Update app.py
Browse files
app.py
CHANGED
@@ -14,7 +14,7 @@ Credit: https://www.youtube.com/@alejandro_ao ๐๐ฟ
|
|
14 |
from langchain.agents import create_csv_agent
|
15 |
from langchain.chat_models import ChatOpenAI
|
16 |
from langchain.agents.agent_types import AgentType
|
17 |
-
from dotenv import load_dotenv
|
18 |
import os
|
19 |
import pandas as pd
|
20 |
import streamlit as st
|
@@ -42,7 +42,7 @@ def main():
|
|
42 |
os.environ["OPENAI_API_KEY"] = openai_api_key
|
43 |
|
44 |
# load the api key from the .env file
|
45 |
-
load_dotenv()
|
46 |
|
47 |
# inform the user that the api key is loaded
|
48 |
if os.getenv("OPENAI_API_KEY") is None or os.getenv("OPENAI_API_KEY") == "":
|
|
|
14 |
from langchain.agents import create_csv_agent
|
15 |
from langchain.chat_models import ChatOpenAI
|
16 |
from langchain.agents.agent_types import AgentType
|
17 |
+
#from dotenv import load_dotenv
|
18 |
import os
|
19 |
import pandas as pd
|
20 |
import streamlit as st
|
|
|
42 |
os.environ["OPENAI_API_KEY"] = openai_api_key
|
43 |
|
44 |
# load the api key from the .env file
|
45 |
+
#load_dotenv()
|
46 |
|
47 |
# inform the user that the api key is loaded
|
48 |
if os.getenv("OPENAI_API_KEY") is None or os.getenv("OPENAI_API_KEY") == "":
|