Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -64,6 +64,7 @@ with gr.Blocks(title="m-4.0 - Chatbot AI") as demo:
|
|
| 64 |
)
|
| 65 |
|
| 66 |
# On ajoute des petits détails pour rendre l'interface plus user-friendly
|
|
|
|
| 67 |
chatbot_interface = gr.ChatInterface(
|
| 68 |
respond,
|
| 69 |
chatbot=gr.Chatbot(label="Chatbot"),
|
|
@@ -74,9 +75,7 @@ with gr.Blocks(title="m-4.0 - Chatbot AI") as demo:
|
|
| 74 |
top_p_slider,
|
| 75 |
],
|
| 76 |
title="Discute avec m-4.0",
|
| 77 |
-
|
| 78 |
-
stop_btn="Stop",
|
| 79 |
-
clear_btn="Effacer la conversation",
|
| 80 |
)
|
| 81 |
|
| 82 |
if __name__ == "__main__":
|
|
|
|
| 64 |
)
|
| 65 |
|
| 66 |
# On ajoute des petits détails pour rendre l'interface plus user-friendly
|
| 67 |
+
# On retire les paramètres qui causent le bug et on ajoute type="messages"
|
| 68 |
chatbot_interface = gr.ChatInterface(
|
| 69 |
respond,
|
| 70 |
chatbot=gr.Chatbot(label="Chatbot"),
|
|
|
|
| 75 |
top_p_slider,
|
| 76 |
],
|
| 77 |
title="Discute avec m-4.0",
|
| 78 |
+
type="messages" # On ajoute cette ligne pour éviter l'avertissement et préparer l'avenir
|
|
|
|
|
|
|
| 79 |
)
|
| 80 |
|
| 81 |
if __name__ == "__main__":
|