Skip to content

Commit b13cc9e

Browse files
committed
update
1 parent cf41591 commit b13cc9e

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

setting.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
"""
3030

3131
BINGSEARCH_HELP = """
32-
32+
For BingSearch, please refer to https://www.microsoft.com/en-us/bing/apis/bing-web-search-api
3333
"""
3434

3535
WOLFRAMALPHA_HELP = """

utils.py

+3-6
Original file line numberDiff line numberDiff line change
@@ -85,9 +85,9 @@ def authenticate(
8585
openai_api_key = (
8686
openai_api_key
8787
or os.environ.get("OPENAI_API_KEY")
88-
#or st.secrets.get("OPENAI_API_KEY")
88+
or st.secrets.get("OPENAI_API_KEY")
8989
)
90-
90+
st.session_state["auth_ok"] = True
9191
if not (openai_api_key):
9292
st.session_state["auth_ok"] = False
9393
st.error("Credentials neither set nor stored", icon=PAGE_ICON)
@@ -156,10 +156,7 @@ def authenticate(
156156
else st.secrets["REPLICATE_API_TOKEN"]
157157
os.environ["REPLICATE_API_TOKEN"] = st.session_state["replicate_api_key"]
158158

159-
st.session_state["auth_ok"] = True
160-
#os.environ["MODELSCOPE_GIT_TOKEN"] = st.session_state["openai_api_key"]
161-
162-
159+
#st.session_state["auth_ok"] = True
163160

164161
def save_uploaded_file(uploaded_file: UploadedFile) -> str:
165162
# streamlit uploaded files need to be stored locally

0 commit comments

Comments
 (0)