Spaces:
Sleeping
Sleeping
edit
Browse files
app.py
CHANGED
|
@@ -146,13 +146,14 @@ def chatbot(message, history):
|
|
| 146 |
return response
|
| 147 |
|
| 148 |
iface = gr.ChatInterface(
|
| 149 |
-
chatbot,
|
| 150 |
-
|
| 151 |
-
|
| 152 |
-
|
|
|
|
| 153 |
examples=[
|
| 154 |
-
"Qu'est-ce que l'assurance multirisque habitation ?",
|
| 155 |
-
"Qu'est-ce que la garantie DTA ?",
|
| 156 |
],
|
| 157 |
retry_btn=None,
|
| 158 |
undo_btn=None,
|
|
|
|
| 146 |
return response
|
| 147 |
|
| 148 |
iface = gr.ChatInterface(
|
| 149 |
+
fn=chatbot,
|
| 150 |
+
textbox=gr.Textbox(lines=3),
|
| 151 |
+
title="Dataltist Chatbot",
|
| 152 |
+
description="Posez vos questions",
|
| 153 |
+
# theme="soft",
|
| 154 |
examples=[
|
| 155 |
+
{"text": "Qu'est-ce que l'assurance multirisque habitation ?"},
|
| 156 |
+
{"text": "Qu'est-ce que la garantie DTA ?"},
|
| 157 |
],
|
| 158 |
retry_btn=None,
|
| 159 |
undo_btn=None,
|