Spaces:
Runtime error
Runtime error
Commit ·
a5ddff4
1
Parent(s): e590711
fixing styles and chunk sizes
Browse files
app.py
CHANGED
|
@@ -9,8 +9,8 @@ from theme import CustomTheme
|
|
| 9 |
import pdf_to_txt
|
| 10 |
|
| 11 |
# Konfiguration
|
| 12 |
-
CONTEXT_SIZE =
|
| 13 |
-
CHUNK_SIZE =
|
| 14 |
CHUNK_OVERLAP = 50
|
| 15 |
|
| 16 |
#convert all pdf to txt
|
|
@@ -171,6 +171,7 @@ def main():
|
|
| 171 |
submit_btn=True, # ← WICHTIG: Button aktivieren!
|
| 172 |
stop_btn=True,
|
| 173 |
elem_id="txt_box_input")
|
|
|
|
| 174 |
with gr.Row():
|
| 175 |
chat = gr.ChatInterface(
|
| 176 |
fn=response,
|
|
|
|
| 9 |
import pdf_to_txt
|
| 10 |
|
| 11 |
# Konfiguration
|
| 12 |
+
CONTEXT_SIZE = 25
|
| 13 |
+
CHUNK_SIZE = 250
|
| 14 |
CHUNK_OVERLAP = 50
|
| 15 |
|
| 16 |
#convert all pdf to txt
|
|
|
|
| 171 |
submit_btn=True, # ← WICHTIG: Button aktivieren!
|
| 172 |
stop_btn=True,
|
| 173 |
elem_id="txt_box_input")
|
| 174 |
+
# Use gr.HTML with the img tag
|
| 175 |
with gr.Row():
|
| 176 |
chat = gr.ChatInterface(
|
| 177 |
fn=response,
|
style.css
CHANGED
|
@@ -179,6 +179,18 @@ button[aria-label="Stop generation"] svg,
|
|
| 179 |
z-index: 10 !important;
|
| 180 |
}
|
| 181 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 182 |
/* Verstecke Retry und Undo Buttons */
|
| 183 |
.icon-buttons,
|
| 184 |
.action-button,
|
|
@@ -213,4 +225,16 @@ div[class*="svelte"] {
|
|
| 213 |
box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
|
| 214 |
}
|
| 215 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 216 |
footer {visibility: hidden}
|
|
|
|
| 179 |
z-index: 10 !important;
|
| 180 |
}
|
| 181 |
|
| 182 |
+
tr {
|
| 183 |
+
order: 3px solid white !important;
|
| 184 |
+
border-radius: 25px !important;
|
| 185 |
+
outline: none !important;
|
| 186 |
+
display: flex !important;
|
| 187 |
+
position: relative !important;
|
| 188 |
+
transform: translateY(-5px) !important;
|
| 189 |
+
box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
|
| 190 |
+
z-index: 10 !important;
|
| 191 |
+
margin-top: 8px !important;
|
| 192 |
+
}
|
| 193 |
+
|
| 194 |
/* Verstecke Retry und Undo Buttons */
|
| 195 |
.icon-buttons,
|
| 196 |
.action-button,
|
|
|
|
| 225 |
box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
|
| 226 |
}
|
| 227 |
|
| 228 |
+
.avatar-image{
|
| 229 |
+
width: 45px !important;
|
| 230 |
+
height: 45px !important;
|
| 231 |
+
min-width: 40px !important;
|
| 232 |
+
min-height: 40px !important;
|
| 233 |
+
border: none !important;
|
| 234 |
+
outline: none !important;
|
| 235 |
+
display: flex !important;
|
| 236 |
+
align-items: center !important;
|
| 237 |
+
justify-content: center !important;
|
| 238 |
+
}
|
| 239 |
+
|
| 240 |
footer {visibility: hidden}
|