right align
Browse files
app.py
CHANGED
|
@@ -6,6 +6,7 @@ st.markdown("""
|
|
| 6 |
.main {
|
| 7 |
background-color: #f4f6f7;
|
| 8 |
}
|
|
|
|
| 9 |
.stChatMessage {
|
| 10 |
background-color: #e8f0fe;
|
| 11 |
border-radius: 12px;
|
|
@@ -15,13 +16,48 @@ st.markdown("""
|
|
| 15 |
text-align: right;
|
| 16 |
font-family: 'Tahoma', sans-serif;
|
| 17 |
}
|
|
|
|
| 18 |
.stMarkdown, .stTextInput, .stTextArea {
|
| 19 |
direction: rtl !important;
|
| 20 |
text-align: right !important;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 21 |
}
|
| 22 |
</style>
|
| 23 |
""", unsafe_allow_html=True)
|
| 24 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 25 |
from langchain.document_loaders import PyPDFLoader
|
| 26 |
from langchain.text_splitter import RecursiveCharacterTextSplitter
|
| 27 |
from langchain.embeddings.base import Embeddings
|
|
|
|
| 6 |
.main {
|
| 7 |
background-color: #f4f6f7;
|
| 8 |
}
|
| 9 |
+
|
| 10 |
.stChatMessage {
|
| 11 |
background-color: #e8f0fe;
|
| 12 |
border-radius: 12px;
|
|
|
|
| 16 |
text-align: right;
|
| 17 |
font-family: 'Tahoma', sans-serif;
|
| 18 |
}
|
| 19 |
+
|
| 20 |
.stMarkdown, .stTextInput, .stTextArea {
|
| 21 |
direction: rtl !important;
|
| 22 |
text-align: right !important;
|
| 23 |
+
font-family: 'Tahoma', sans-serif;
|
| 24 |
+
}
|
| 25 |
+
|
| 26 |
+
.center-header {
|
| 27 |
+
display: flex;
|
| 28 |
+
flex-direction: column;
|
| 29 |
+
align-items: center;
|
| 30 |
+
justify-content: center;
|
| 31 |
+
margin-bottom: 30px;
|
| 32 |
+
}
|
| 33 |
+
|
| 34 |
+
.center-header img {
|
| 35 |
+
width: 150px; /* اندازه بزرگتر برای لوگو */
|
| 36 |
+
height: auto;
|
| 37 |
+
border-radius: 20px;
|
| 38 |
+
box-shadow: 0 4px 12px rgba(0,0,0,0.15);
|
| 39 |
+
margin-bottom: 10px;
|
| 40 |
+
}
|
| 41 |
+
|
| 42 |
+
.center-header h1 {
|
| 43 |
+
font-size: 28px;
|
| 44 |
+
font-weight: bold;
|
| 45 |
+
color: #2c3e50;
|
| 46 |
+
font-family: 'Tahoma', sans-serif;
|
| 47 |
+
text-align: center;
|
| 48 |
+
margin: 0;
|
| 49 |
}
|
| 50 |
</style>
|
| 51 |
""", unsafe_allow_html=True)
|
| 52 |
|
| 53 |
+
st.markdown("""
|
| 54 |
+
<div class="center-header">
|
| 55 |
+
<img src="https://your-logo-url.com/logo.png" alt="لوگو">
|
| 56 |
+
<h1>اسم اپلیکیشن یا شرکت شما</h1>
|
| 57 |
+
</div>
|
| 58 |
+
""", unsafe_allow_html=True)
|
| 59 |
+
|
| 60 |
+
|
| 61 |
from langchain.document_loaders import PyPDFLoader
|
| 62 |
from langchain.text_splitter import RecursiveCharacterTextSplitter
|
| 63 |
from langchain.embeddings.base import Embeddings
|