izammohammed commited on
Commit
156be56
β€’
1 Parent(s): 23cf342

setting the env api keys

Browse files
Files changed (1) hide show
  1. app.py +4 -0
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":