Spaces:
Sleeping
Sleeping
MohammedNasser
commited on
Commit
•
ddcb279
1
Parent(s):
781988e
Update app.py
Browse files
app.py
CHANGED
@@ -111,6 +111,8 @@ def create_chain(vectorstore):
|
|
111 |
chain_type="map_reduce"
|
112 |
)
|
113 |
return chain
|
|
|
|
|
114 |
|
115 |
custom_css = """
|
116 |
body {
|
@@ -122,6 +124,9 @@ body {
|
|
122 |
}
|
123 |
|
124 |
.gradio-container {
|
|
|
|
|
|
|
125 |
max-width: 800px !important;
|
126 |
margin: auto !important;
|
127 |
background: rgba(255, 255, 255, 0.9);
|
@@ -184,6 +189,13 @@ p {
|
|
184 |
.chat-message.bot::before {
|
185 |
content: '🤖';
|
186 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
187 |
"""
|
188 |
|
189 |
def upload_pdf(pdf_file):
|
|
|
111 |
chain_type="map_reduce"
|
112 |
)
|
113 |
return chain
|
114 |
+
|
115 |
+
|
116 |
|
117 |
custom_css = """
|
118 |
body {
|
|
|
124 |
}
|
125 |
|
126 |
.gradio-container {
|
127 |
+
direction: rtl; /* For RTL layout */
|
128 |
+
font-family: 'Noto Kufi Arabic', sans-serif; /* Set your custom font */
|
129 |
+
font-size: 16px; /* Adjust font size */
|
130 |
max-width: 800px !important;
|
131 |
margin: auto !important;
|
132 |
background: rgba(255, 255, 255, 0.9);
|
|
|
189 |
.chat-message.bot::before {
|
190 |
content: '🤖';
|
191 |
}
|
192 |
+
label {
|
193 |
+
font-size: 18px; /* Label customizations */
|
194 |
+
color: red; /* Change color as needed */
|
195 |
+
}
|
196 |
+
#pdf_input, #submit_button_pdf, #chat_input, #chat_output, #audio_output {
|
197 |
+
text-align: right; /* Ensure RTL alignment */
|
198 |
+
}
|
199 |
"""
|
200 |
|
201 |
def upload_pdf(pdf_file):
|