Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -367,11 +367,13 @@ def validate_update(updated_skills, request: gr.Request):
|
|
367 |
|
368 |
# Création de l'interface
|
369 |
with gr.Blocks() as demo:
|
370 |
-
|
371 |
-
|
372 |
-
|
373 |
-
|
374 |
-
|
|
|
|
|
375 |
|
376 |
|
377 |
|
@@ -388,4 +390,10 @@ with gr.Blocks() as demo:
|
|
388 |
outputs=[chatbot, skill_assessment_output])
|
389 |
|
390 |
if __name__ == "__main__":
|
391 |
-
demo.launch(
|
|
|
|
|
|
|
|
|
|
|
|
|
|
367 |
|
368 |
# Création de l'interface
|
369 |
with gr.Blocks() as demo:
|
370 |
+
with gr.Row(elem_id="scroll-container"):
|
371 |
+
with gr.Column(scale=1):
|
372 |
+
chatbot = gr.Chatbot(label="Chatbot", elem_id="chatbot") # Chatbot pour la conversation
|
373 |
+
msg = gr.Textbox(label="Message", placeholder="Tapez votre message ici...") # Champ de texte pour envoyer des messages
|
374 |
+
skill_assessment_output = gr.Textbox(label="Compétences actuelles", interactive=False) # Sortie des compétences
|
375 |
+
validate_button = gr.Button("Valider la mise à jour") # Bouton pour valider la mise à jour
|
376 |
+
validation_output = gr.Textbox(label="Résultat de la mise à jour", interactive=False)
|
377 |
|
378 |
|
379 |
|
|
|
390 |
outputs=[chatbot, skill_assessment_output])
|
391 |
|
392 |
if __name__ == "__main__":
|
393 |
+
demo.launch(css="""
|
394 |
+
#scroll-container {
|
395 |
+
max-height: 80vh; /* Limite la hauteur du conteneur */
|
396 |
+
overflow-y: auto; /* Permet le défilement vertical */
|
397 |
+
padding: 20px; /* Optionnel : ajoute un peu d'espace autour */
|
398 |
+
}
|
399 |
+
""")
|