Update Dockerfile and chatbot script to base code in /data folder for persistent storage.
Browse files- Dockerfile +2 -2
- scripts/pages/1_Chatbot_AMS_Modular.py +1 -1
Dockerfile
CHANGED
@@ -9,8 +9,8 @@ RUN useradd -m -u 1000 user
|
|
9 |
USER user
|
10 |
|
11 |
# Set home to the user's home directory
|
12 |
-
ENV HOME=/
|
13 |
-
PATH=/
|
14 |
|
15 |
# Change permissions for to read/write/execute
|
16 |
RUN mkdir -p $HOME/app
|
|
|
9 |
USER user
|
10 |
|
11 |
# Set home to the user's home directory
|
12 |
+
ENV HOME=/data \
|
13 |
+
PATH=/data:$PATH
|
14 |
|
15 |
# Change permissions for to read/write/execute
|
16 |
RUN mkdir -p $HOME/app
|
scripts/pages/1_Chatbot_AMS_Modular.py
CHANGED
@@ -33,7 +33,7 @@ st.set_page_config(
|
|
33 |
st.title('Aerospace Mechanisms Chatbot')
|
34 |
with st.expander('''What's under the hood?'''):
|
35 |
st.markdown('''
|
36 |
-
This chatbot will look up from all Aerospace Mechanism Symposia in the following location: https://
|
37 |
Example questions:
|
38 |
* What are examples of latch failures which have occurred due to improper fitup?
|
39 |
* What are examples of lubricants which should be avoided for space mechanism applications?
|
|
|
33 |
st.title('Aerospace Mechanisms Chatbot')
|
34 |
with st.expander('''What's under the hood?'''):
|
35 |
st.markdown('''
|
36 |
+
This chatbot will look up from all Aerospace Mechanism Symposia in the following location: https://huggingface.co/spaces/ai-aerospace/aerospace_chatbots/tree/main/data/AMS
|
37 |
Example questions:
|
38 |
* What are examples of latch failures which have occurred due to improper fitup?
|
39 |
* What are examples of lubricants which should be avoided for space mechanism applications?
|