Update app.py
Browse files
app.py
CHANGED
@@ -348,7 +348,7 @@ custom_css = """
|
|
348 |
--primary-color: #2D3748;
|
349 |
--secondary-color: #4A5568;
|
350 |
--accent-color: #4299E1;
|
351 |
-
--background-color: #
|
352 |
--border-radius: 8px;
|
353 |
--font-family-arabic: 'Noto Sans Arabic', Arial, sans-serif;
|
354 |
}
|
@@ -372,7 +372,7 @@ body {
|
|
372 |
padding: 1rem !important;
|
373 |
border-radius: var(--border-radius) !important;
|
374 |
border: 1px solid #E2E8F0 !important;
|
375 |
-
background-color: #
|
376 |
font-size: 1.1rem !important;
|
377 |
line-height: 1.6 !important;
|
378 |
font-family: var(--font-family-arabic) !important;
|
@@ -416,7 +416,7 @@ button.primary-button:hover {
|
|
416 |
|
417 |
/* Styles des boîtes de texte */
|
418 |
.textbox-container {
|
419 |
-
background-color:
|
420 |
padding: 1.5rem !important;
|
421 |
border-radius: var(--border-radius) !important;
|
422 |
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
|
@@ -480,7 +480,7 @@ with gr.Blocks(css=custom_css) as iface:
|
|
480 |
variant="primary"
|
481 |
)
|
482 |
|
483 |
-
status_text = gr.Markdown("", elem_classes="rtl-text status-text")
|
484 |
|
485 |
def on_submit(question):
|
486 |
# Retourne trois valeurs : réponse, contexte et statut
|
@@ -491,7 +491,7 @@ with gr.Blocks(css=custom_css) as iface:
|
|
491 |
submit_btn.click(
|
492 |
fn=on_submit,
|
493 |
inputs=input_text,
|
494 |
-
outputs=[answer_box, context_box
|
495 |
api_name="predict",
|
496 |
queue=True
|
497 |
)
|
|
|
348 |
--primary-color: #2D3748;
|
349 |
--secondary-color: #4A5568;
|
350 |
--accent-color: #4299E1;
|
351 |
+
--background-color: #424B5A;
|
352 |
--border-radius: 8px;
|
353 |
--font-family-arabic: 'Noto Sans Arabic', Arial, sans-serif;
|
354 |
}
|
|
|
372 |
padding: 1rem !important;
|
373 |
border-radius: var(--border-radius) !important;
|
374 |
border: 1px solid #E2E8F0 !important;
|
375 |
+
background-color: #5b5b5b !important;
|
376 |
font-size: 1.1rem !important;
|
377 |
line-height: 1.6 !important;
|
378 |
font-family: var(--font-family-arabic) !important;
|
|
|
416 |
|
417 |
/* Styles des boîtes de texte */
|
418 |
.textbox-container {
|
419 |
+
background-color: #5b5b5b !important;
|
420 |
padding: 1.5rem !important;
|
421 |
border-radius: var(--border-radius) !important;
|
422 |
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
|
|
|
480 |
variant="primary"
|
481 |
)
|
482 |
|
483 |
+
# status_text = gr.Markdown("", elem_classes="rtl-text status-text")
|
484 |
|
485 |
def on_submit(question):
|
486 |
# Retourne trois valeurs : réponse, contexte et statut
|
|
|
491 |
submit_btn.click(
|
492 |
fn=on_submit,
|
493 |
inputs=input_text,
|
494 |
+
outputs=[answer_box, context_box],
|
495 |
api_name="predict",
|
496 |
queue=True
|
497 |
)
|