Spaces:
Sleeping
Sleeping
Update pages/jury_records.py
Browse files- pages/jury_records.py +1 -1
pages/jury_records.py
CHANGED
|
@@ -10,7 +10,7 @@ from langchain.chat_models import ChatOpenAI
|
|
| 10 |
import openai
|
| 11 |
import json
|
| 12 |
#need to set openai key or set it as a environment variable
|
| 13 |
-
openai.api_key = "
|
| 14 |
model = ChatOpenAI(model = 'gpt-4', max_tokens = 100,temperature=0)
|
| 15 |
st.set_page_config(page_title="jury_records", page_icon="📈")
|
| 16 |
# using this function to extract the content from the url. here we are using langchain webbaseloader to extract the content. We can use any web scrapping function also.
|
|
|
|
| 10 |
import openai
|
| 11 |
import json
|
| 12 |
#need to set openai key or set it as a environment variable
|
| 13 |
+
openai.api_key = os.getenv("OPENAI_API_KEY")
|
| 14 |
model = ChatOpenAI(model = 'gpt-4', max_tokens = 100,temperature=0)
|
| 15 |
st.set_page_config(page_title="jury_records", page_icon="📈")
|
| 16 |
# using this function to extract the content from the url. here we are using langchain webbaseloader to extract the content. We can use any web scrapping function also.
|