Spaces:
Runtime error
Runtime error
create data/ dir in Dockerfile
Browse files- Dockerfile +3 -0
- knowledge_gpt/components/sidebar.py +1 -1
Dockerfile
CHANGED
|
@@ -33,6 +33,9 @@ RUN python3 -m pip install -r requirements.txt
|
|
| 33 |
# Copy the current directory contents into the container at $HOME/app setting the owner to the user
|
| 34 |
COPY --chown=user . $HOME/app
|
| 35 |
|
|
|
|
|
|
|
|
|
|
| 36 |
ENV PATH="/app/.venv/bin:$PATH"
|
| 37 |
|
| 38 |
EXPOSE 8501
|
|
|
|
| 33 |
# Copy the current directory contents into the container at $HOME/app setting the owner to the user
|
| 34 |
COPY --chown=user . $HOME/app
|
| 35 |
|
| 36 |
+
# create data/ directory to store PDFs
|
| 37 |
+
RUN mkdir $HOME/app/data/ && chmod -R 777 $HOME/app/data/
|
| 38 |
+
|
| 39 |
ENV PATH="/app/.venv/bin:$PATH"
|
| 40 |
|
| 41 |
EXPOSE 8501
|
knowledge_gpt/components/sidebar.py
CHANGED
|
@@ -14,7 +14,7 @@ def sidebar():
|
|
| 14 |
)
|
| 15 |
st.markdown(
|
| 16 |
"This tool is a work in progress. "
|
| 17 |
-
"You can contribute to the project on [GitHub](https://github.com/
|
| 18 |
"with your feedback and suggestions💡"
|
| 19 |
)
|
| 20 |
st.markdown("The tool was based on KnowledgeGPT made by [mmz_001](https://twitter.com/mm_sasmitha).")
|
|
|
|
| 14 |
)
|
| 15 |
st.markdown(
|
| 16 |
"This tool is a work in progress. "
|
| 17 |
+
"You can contribute to the project on [GitHub](https://github.com/andreped/ReferenceBot) " # noqa: E501
|
| 18 |
"with your feedback and suggestions💡"
|
| 19 |
)
|
| 20 |
st.markdown("The tool was based on KnowledgeGPT made by [mmz_001](https://twitter.com/mm_sasmitha).")
|