Spaces:
Running
Running
geekyrakshit
commited on
Commit
·
7666d20
1
Parent(s):
49dbefc
remove: load_dotenv()
Browse files
application_pages/chat_app.py
CHANGED
@@ -1,14 +1,12 @@
|
|
1 |
import importlib
|
2 |
|
3 |
import streamlit as st
|
4 |
-
from dotenv import load_dotenv
|
5 |
|
6 |
from guardrails_genie.guardrails import GuardrailManager
|
7 |
from guardrails_genie.llm import OpenAIModel
|
8 |
|
9 |
|
10 |
def initialize_session_state():
|
11 |
-
load_dotenv()
|
12 |
if "guardrails" not in st.session_state:
|
13 |
st.session_state.guardrails = []
|
14 |
if "guardrail_names" not in st.session_state:
|
|
|
1 |
import importlib
|
2 |
|
3 |
import streamlit as st
|
|
|
4 |
|
5 |
from guardrails_genie.guardrails import GuardrailManager
|
6 |
from guardrails_genie.llm import OpenAIModel
|
7 |
|
8 |
|
9 |
def initialize_session_state():
|
|
|
10 |
if "guardrails" not in st.session_state:
|
11 |
st.session_state.guardrails = []
|
12 |
if "guardrail_names" not in st.session_state:
|
application_pages/evaluation_app.py
CHANGED
@@ -4,7 +4,6 @@ from importlib import import_module
|
|
4 |
import pandas as pd
|
5 |
import streamlit as st
|
6 |
import weave
|
7 |
-
from dotenv import load_dotenv
|
8 |
|
9 |
from guardrails_genie.guardrails import GuardrailManager
|
10 |
from guardrails_genie.llm import OpenAIModel
|
@@ -12,7 +11,6 @@ from guardrails_genie.metrics import AccuracyMetric
|
|
12 |
|
13 |
|
14 |
def initialize_session_state():
|
15 |
-
load_dotenv()
|
16 |
if "uploaded_file" not in st.session_state:
|
17 |
st.session_state.uploaded_file = None
|
18 |
if "dataset_name" not in st.session_state:
|
|
|
4 |
import pandas as pd
|
5 |
import streamlit as st
|
6 |
import weave
|
|
|
7 |
|
8 |
from guardrails_genie.guardrails import GuardrailManager
|
9 |
from guardrails_genie.llm import OpenAIModel
|
|
|
11 |
|
12 |
|
13 |
def initialize_session_state():
|
|
|
14 |
if "uploaded_file" not in st.session_state:
|
15 |
st.session_state.uploaded_file = None
|
16 |
if "dataset_name" not in st.session_state:
|