Spaces:
Running
Running
Commit
β’
156be56
1
Parent(s):
23cf342
setting the env api keys
Browse files
app.py
CHANGED
@@ -1,7 +1,11 @@
|
|
1 |
import streamlit as st
|
|
|
2 |
|
3 |
st.title("Legal Advisor π")
|
4 |
|
|
|
|
|
|
|
5 |
# Sidebar for selecting the chatbot
|
6 |
selected_chatbot = st.sidebar.radio("Select Chatbot", ("OpenAI", "Llama 2"))
|
7 |
if selected_chatbot == "OpenAI":
|
|
|
1 |
import streamlit as st
|
2 |
+
import os
|
3 |
|
4 |
st.title("Legal Advisor π")
|
5 |
|
6 |
+
os.environ["OPENAI_API_KEY"] = st.secrets["OPENAI_API_KEY"]
|
7 |
+
os.environ["PINECONE_API_KEY"] = st.secrets["PINECONE_API_KEY"]
|
8 |
+
|
9 |
# Sidebar for selecting the chatbot
|
10 |
selected_chatbot = st.sidebar.radio("Select Chatbot", ("OpenAI", "Llama 2"))
|
11 |
if selected_chatbot == "OpenAI":
|