Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -108,7 +108,7 @@ with gr.Blocks(title="Chatbot Mentorat") as demo:
|
|
| 108 |
|
| 109 |
with gr.Row():
|
| 110 |
with gr.Column(scale=1, min_width=280):
|
| 111 |
-
gr.Markdown("###
|
| 112 |
history_display = gr.Textbox(
|
| 113 |
label="Conversations",
|
| 114 |
interactive=False,
|
|
@@ -117,10 +117,10 @@ with gr.Blocks(title="Chatbot Mentorat") as demo:
|
|
| 117 |
)
|
| 118 |
|
| 119 |
with gr.Row():
|
| 120 |
-
btn_new = gr.Button("Nouvelle Conversation", size="sm")
|
| 121 |
-
btn_delete = gr.Button("Supprimer", size="sm")
|
| 122 |
|
| 123 |
-
gr.Markdown("Configuration")
|
| 124 |
system_prompt = gr.Textbox(
|
| 125 |
value="Tu es un assistant IA utile et honnête. Répondsmanière claire et concise.",
|
| 126 |
label="Prompt système",
|
|
@@ -135,7 +135,7 @@ with gr.Blocks(title="Chatbot Mentorat") as demo:
|
|
| 135 |
)
|
| 136 |
|
| 137 |
with gr.Column(scale=3):
|
| 138 |
-
gr.Markdown("Conversation")
|
| 139 |
chatbot = gr.Chatbot(height=600, show_label=False, avatar_images=("👤", "🤖"))
|
| 140 |
|
| 141 |
with gr.Row():
|
|
|
|
| 108 |
|
| 109 |
with gr.Row():
|
| 110 |
with gr.Column(scale=1, min_width=280):
|
| 111 |
+
gr.Markdown("### Historique")
|
| 112 |
history_display = gr.Textbox(
|
| 113 |
label="Conversations",
|
| 114 |
interactive=False,
|
|
|
|
| 117 |
)
|
| 118 |
|
| 119 |
with gr.Row():
|
| 120 |
+
btn_new = gr.Button("### Nouvelle Conversation", size="sm")
|
| 121 |
+
btn_delete = gr.Button("### Supprimer", size="sm")
|
| 122 |
|
| 123 |
+
gr.Markdown("### Configuration")
|
| 124 |
system_prompt = gr.Textbox(
|
| 125 |
value="Tu es un assistant IA utile et honnête. Répondsmanière claire et concise.",
|
| 126 |
label="Prompt système",
|
|
|
|
| 135 |
)
|
| 136 |
|
| 137 |
with gr.Column(scale=3):
|
| 138 |
+
gr.Markdown("### Conversation")
|
| 139 |
chatbot = gr.Chatbot(height=600, show_label=False, avatar_images=("👤", "🤖"))
|
| 140 |
|
| 141 |
with gr.Row():
|