Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
update page1 format
Browse files- pages/1_paper_search.py +4 -3
pages/1_paper_search.py
CHANGED
@@ -11,9 +11,10 @@ from urllib.request import urlopen
|
|
11 |
from summa import summarizer
|
12 |
import numpy as np
|
13 |
|
14 |
-
# openai.organization =
|
15 |
-
openai.
|
16 |
-
openai.
|
|
|
17 |
os.environ["OPENAI_API_KEY"] = openai.api_key
|
18 |
|
19 |
@st.cache_data
|
|
|
11 |
from summa import summarizer
|
12 |
import numpy as np
|
13 |
|
14 |
+
# openai.organization = st.secrets.openai.org
|
15 |
+
# openai.api_key = st.secrets.openai.api_key
|
16 |
+
openai.organization = st.secrets["org"]
|
17 |
+
openai.api_key = st.secrets["api_key"]
|
18 |
os.environ["OPENAI_API_KEY"] = openai.api_key
|
19 |
|
20 |
@st.cache_data
|