Update app.py
Browse files
app.py
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
import streamlit as st
|
2 |
from utils import *
|
3 |
import constants
|
4 |
-
|
5 |
import base64
|
6 |
|
7 |
def get_base64(bin_file):
|
@@ -37,10 +37,9 @@ st.markdown(hide_streamlit_style, unsafe_allow_html=True)
|
|
37 |
set_background('./15683.jpg')
|
38 |
|
39 |
if 'HuggingFace_API_Key' not in st.session_state:
|
40 |
-
st.session_state['HuggingFace_API_Key'] ='
|
41 |
if 'Pinecone_API_Key' not in st.session_state:
|
42 |
-
|
43 |
-
st.session_state['Pinecone_API_Key'] ='92f43d94-bf9c-42e6-bc0c-1f28b52c4f59'
|
44 |
|
45 |
st.title("π TCE.edu Chat Assistant: Your Friendly Guide to Everything TCE! π")
|
46 |
|
|
|
1 |
import streamlit as st
|
2 |
from utils import *
|
3 |
import constants
|
4 |
+
import os
|
5 |
import base64
|
6 |
|
7 |
def get_base64(bin_file):
|
|
|
37 |
set_background('./15683.jpg')
|
38 |
|
39 |
if 'HuggingFace_API_Key' not in st.session_state:
|
40 |
+
st.session_state['HuggingFace_API_Key'] = os.getenv['HF_TOKEN']
|
41 |
if 'Pinecone_API_Key' not in st.session_state:
|
42 |
+
st.session_state['Pinecone_API_Key'] = os.getenv['PINECONE_API']
|
|
|
43 |
|
44 |
st.title("π TCE.edu Chat Assistant: Your Friendly Guide to Everything TCE! π")
|
45 |
|