Cleanup
This commit is contained in:
36
src/app.py
36
src/app.py
@@ -4,8 +4,8 @@ from langchain.chains.combine_documents import create_stuff_documents_chain
|
||||
from langchain_core.prompts import ChatPromptTemplate
|
||||
from src.rag_core import get_retriever, get_llm
|
||||
|
||||
st.set_page_config(page_title="RAG Chat", layout="wide")
|
||||
st.title("Paperless-NGX RAG Assistant")
|
||||
st.set_page_config(page_title="DocuMind-G4 Chat", layout="wide")
|
||||
st.title("DocuMind-G4 RAG Assistant")
|
||||
|
||||
retriever, vectorstore, _ = get_retriever()
|
||||
llm = get_llm()
|
||||
@@ -64,4 +64,34 @@ if prompt_input := st.chat_input("Stelle eine Frage zu deinen Dokumenten..."):
|
||||
for s in unique_sources:
|
||||
st.write(f"- {s}")
|
||||
|
||||
st.session_state.messages.append({"role": "assistant", "content": answer})
|
||||
st.session_state.messages.append({"role": "assistant", "content": answer})
|
||||
|
||||
hide_streamlit_style = """
|
||||
<style>
|
||||
footer {visibility: hidden;}
|
||||
</style>
|
||||
"""
|
||||
st.markdown(hide_streamlit_style, unsafe_allow_html=True)
|
||||
|
||||
custom_footer = """
|
||||
<style>
|
||||
.footer {
|
||||
position: fixed;
|
||||
left: 0;
|
||||
bottom: 0;
|
||||
width: 100%;
|
||||
background-color: #f8f9fa;
|
||||
color: #31333F;
|
||||
text-align: center;
|
||||
padding: 10px;
|
||||
font-size: 14px;
|
||||
z-index: 99;
|
||||
}
|
||||
</style>
|
||||
<div class="footer">
|
||||
<p>DocuMind-G4 created by Julius Wolff 2026</p>
|
||||
</div>
|
||||
"""
|
||||
|
||||
# 3. Den Footer in die App rendern
|
||||
st.markdown(custom_footer, unsafe_allow_html=True)
|
||||
Reference in New Issue
Block a user