Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -2,6 +2,8 @@ import re
|
|
2 |
import pandas as pd
|
3 |
from os import environ
|
4 |
import streamlit as st
|
|
|
|
|
5 |
|
6 |
from langchain.vectorstores import MyScale, MyScaleSettings
|
7 |
from langchain.embeddings import HuggingFaceInstructEmbeddings
|
@@ -16,8 +18,6 @@ from callbacks.arxiv_callbacks import ChatDataSearchCallBackHandler, ChatDataAsk
|
|
16 |
from langchain.prompts.prompt import PromptTemplate
|
17 |
|
18 |
|
19 |
-
environ['TOKENIZERS_PARALLELISM'] = 'true'
|
20 |
-
|
21 |
st.set_page_config(page_title="ChatData")
|
22 |
|
23 |
st.header("ChatData")
|
|
|
2 |
import pandas as pd
|
3 |
from os import environ
|
4 |
import streamlit as st
|
5 |
+
environ['TOKENIZERS_PARALLELISM'] = 'true'
|
6 |
+
environ['OPENAI_API_BASE'] = st.secrets['OPENAI_API_BASE']
|
7 |
|
8 |
from langchain.vectorstores import MyScale, MyScaleSettings
|
9 |
from langchain.embeddings import HuggingFaceInstructEmbeddings
|
|
|
18 |
from langchain.prompts.prompt import PromptTemplate
|
19 |
|
20 |
|
|
|
|
|
21 |
st.set_page_config(page_title="ChatData")
|
22 |
|
23 |
st.header("ChatData")
|