File tree 2 files changed +4
-7
lines changed
2 files changed +4
-7
lines changed Original file line number Diff line number Diff line change 29
29
"""
30
30
31
31
BINGSEARCH_HELP = """
32
-
32
+ For BingSearch, please refer to https://www.microsoft.com/en-us/bing/apis/bing-web-search-api
33
33
"""
34
34
35
35
WOLFRAMALPHA_HELP = """
Original file line number Diff line number Diff line change @@ -85,9 +85,9 @@ def authenticate(
85
85
openai_api_key = (
86
86
openai_api_key
87
87
or os .environ .get ("OPENAI_API_KEY" )
88
- # or st.secrets.get("OPENAI_API_KEY")
88
+ or st .secrets .get ("OPENAI_API_KEY" )
89
89
)
90
-
90
+ st . session_state [ "auth_ok" ] = True
91
91
if not (openai_api_key ):
92
92
st .session_state ["auth_ok" ] = False
93
93
st .error ("Credentials neither set nor stored" , icon = PAGE_ICON )
@@ -156,10 +156,7 @@ def authenticate(
156
156
else st .secrets ["REPLICATE_API_TOKEN" ]
157
157
os .environ ["REPLICATE_API_TOKEN" ] = st .session_state ["replicate_api_key" ]
158
158
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
163
160
164
161
def save_uploaded_file (uploaded_file : UploadedFile ) -> str :
165
162
# streamlit uploaded files need to be stored locally
You can’t perform that action at this time.
0 commit comments