eliot-hub commited on
Commit
f069c91
1 Parent(s): 8216547
Files changed (1) hide show
  1. app.py +7 -6
app.py CHANGED
@@ -146,13 +146,14 @@ def chatbot(message, history):
146
  return response
147
 
148
  iface = gr.ChatInterface(
149
- chatbot,
150
- title="Assurance Chatbot",
151
- description="Posez vos questions sur l'assurance",
152
- theme="soft",
 
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,