Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -371,11 +371,22 @@ def validate_update(updated_skills, request: gr.Request):
|
|
| 371 |
|
| 372 |
# Création de l'interface
|
| 373 |
with gr.Blocks() as demo:
|
| 374 |
-
|
| 375 |
-
|
| 376 |
-
|
| 377 |
-
|
| 378 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 379 |
|
| 380 |
|
| 381 |
|
|
|
|
| 371 |
|
| 372 |
# Création de l'interface
|
| 373 |
with gr.Blocks() as demo:
|
| 374 |
+
gr.HTML("""
|
| 375 |
+
<style>
|
| 376 |
+
#scroll-container {
|
| 377 |
+
max-height: 80vh; /* Limite la hauteur du conteneur */
|
| 378 |
+
overflow-y: auto; /* Permet le défilement vertical */
|
| 379 |
+
padding: 20px; /* Optionnel : ajoute un peu d'espace autour */
|
| 380 |
+
}
|
| 381 |
+
</style>
|
| 382 |
+
""")
|
| 383 |
+
with gr.Row(elem_id="scroll-container"):
|
| 384 |
+
with gr.Column(scale=1):
|
| 385 |
+
chatbot = gr.Chatbot(label="Chatbot", elem_id="chatbot") # Chatbot pour la conversation
|
| 386 |
+
msg = gr.Textbox(label="Message", placeholder="Tapez votre message ici...") # Champ de texte pour envoyer des messages
|
| 387 |
+
skill_assessment_output = gr.Textbox(label="Compétences actuelles", interactive=False) # Sortie des compétences
|
| 388 |
+
validate_button = gr.Button("Valider la mise à jour") # Bouton pour valider la mise à jour
|
| 389 |
+
validation_output = gr.Textbox(label="Résultat de la mise à jour", interactive=False)
|
| 390 |
|
| 391 |
|
| 392 |
|