Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -367,6 +367,15 @@ def validate_update(updated_skills, request: gr.Request):
|
|
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
|
@@ -390,10 +399,4 @@ with gr.Blocks() as demo:
|
|
390 |
outputs=[chatbot, skill_assessment_output])
|
391 |
|
392 |
if __name__ == "__main__":
|
393 |
-
demo.launch(
|
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 |
-
""")
|
|
|
367 |
|
368 |
# Création de l'interface
|
369 |
with gr.Blocks() as demo:
|
370 |
+
gr.HTML("""
|
371 |
+
<style>
|
372 |
+
#scroll-container {
|
373 |
+
max-height: 80vh; /* Limite la hauteur du conteneur */
|
374 |
+
overflow-y: auto; /* Permet le défilement vertical */
|
375 |
+
padding: 20px; /* Optionnel : ajoute un peu d'espace autour */
|
376 |
+
}
|
377 |
+
</style>
|
378 |
+
""")
|
379 |
with gr.Row(elem_id="scroll-container"):
|
380 |
with gr.Column(scale=1):
|
381 |
chatbot = gr.Chatbot(label="Chatbot", elem_id="chatbot") # Chatbot pour la conversation
|
|
|
399 |
outputs=[chatbot, skill_assessment_output])
|
400 |
|
401 |
if __name__ == "__main__":
|
402 |
+
demo.launch()
|
|
|
|
|
|
|
|
|
|
|
|