Update app.py
Browse files
app.py
CHANGED
@@ -328,6 +328,7 @@ button.primary-button {
|
|
328 |
font-weight: 600 !important;
|
329 |
font-size: 1.1rem !important;
|
330 |
transition: all 0.3s ease !important;
|
|
|
331 |
}
|
332 |
|
333 |
button.primary-button:hover {
|
@@ -395,24 +396,12 @@ with gr.Blocks(css=custom_css) as iface:
|
|
395 |
# elem_classes="rtl-text textbox-container"
|
396 |
# )
|
397 |
|
398 |
-
|
399 |
-
|
400 |
-
|
401 |
-
|
402 |
-
|
403 |
-
|
404 |
-
button.primary-button {
|
405 |
-
font-family: var(--font-family-arabic) !important;
|
406 |
-
background-color: var(--accent-color) !important;
|
407 |
-
color: white !important;
|
408 |
-
padding: 0.75rem 1.5rem !important;
|
409 |
-
border-radius: var(--border-radius) !important;
|
410 |
-
font-weight: 600 !important;
|
411 |
-
font-size: 1.1rem !important;
|
412 |
-
transition: all 0.3s ease !important;
|
413 |
-
width: 200px !important; /* Réduit la largeur du bouton */
|
414 |
-
}
|
415 |
-
|
416 |
|
417 |
def on_submit(question):
|
418 |
# Appeler process_question pour obtenir la réponse complète et le contexte
|
|
|
328 |
font-weight: 600 !important;
|
329 |
font-size: 1.1rem !important;
|
330 |
transition: all 0.3s ease !important;
|
331 |
+
width: 200px !important; /* Réduit la largeur du bouton */
|
332 |
}
|
333 |
|
334 |
button.primary-button:hover {
|
|
|
396 |
# elem_classes="rtl-text textbox-container"
|
397 |
# )
|
398 |
|
399 |
+
submit_btn = gr.Button(
|
400 |
+
"إرسال السؤال",
|
401 |
+
elem_classes="primary-button",
|
402 |
+
variant="primary"
|
403 |
+
)
|
404 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
405 |
|
406 |
def on_submit(question):
|
407 |
# Appeler process_question pour obtenir la réponse complète et le contexte
|