betterme
commited on
Commit
·
d6e76b8
1
Parent(s):
c2f20b2
update
Browse files- Dockerfile +1 -1
- _👋_.py +1 -1
- pages/chatbase.py +1 -1
Dockerfile
CHANGED
@@ -4,7 +4,7 @@ WORKDIR /code
|
|
4 |
|
5 |
COPY ./requirements.txt /code/requirements.txt
|
6 |
|
7 |
-
RUN pip install -i https://pypi.python.org/simple --no-cache-dir -
|
8 |
|
9 |
# Set up a new user named "user" with user ID 1000
|
10 |
RUN useradd -m -u 1000 user
|
|
|
4 |
|
5 |
COPY ./requirements.txt /code/requirements.txt
|
6 |
|
7 |
+
RUN pip install -i https://pypi.python.org/simple --no-cache-dir -r /code/requirements.txt # -U
|
8 |
|
9 |
# Set up a new user named "user" with user ID 1000
|
10 |
RUN useradd -m -u 1000 user
|
_👋_.py
CHANGED
@@ -6,4 +6,4 @@ st.set_page_config(
|
|
6 |
layout="wide",
|
7 |
initial_sidebar_state="collapsed",
|
8 |
)
|
9 |
-
st.text_input('业务搜索', '知识图谱')
|
|
|
6 |
layout="wide",
|
7 |
initial_sidebar_state="collapsed",
|
8 |
)
|
9 |
+
# st.text_input('业务搜索', '知识图谱')
|
pages/chatbase.py
CHANGED
@@ -18,7 +18,7 @@ from appzoo.streamlit_app.utils import display_pdf, reply4input
|
|
18 |
st.set_page_config('🔥ChatLLM', layout='centered', initial_sidebar_state='collapsed')
|
19 |
|
20 |
|
21 |
-
@st.
|
22 |
def get_chat_func():
|
23 |
chat_func = llm_load4chat()
|
24 |
return chat_func
|
|
|
18 |
st.set_page_config('🔥ChatLLM', layout='centered', initial_sidebar_state='collapsed')
|
19 |
|
20 |
|
21 |
+
@st.cache_resource
|
22 |
def get_chat_func():
|
23 |
chat_func = llm_load4chat()
|
24 |
return chat_func
|