datacipen commited on
Commit
8cbb038
1 Parent(s): 13df262

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +2 -2
main.py CHANGED
@@ -197,7 +197,7 @@ async def on_message(message: cl.Message):
197
  count = count + 1
198
  test.append(search[i].metadata['Lien'])
199
  sources_text = sources_text + str(count) + ". " + search[i].metadata['Titre'] + ', ' + search[i].metadata['Auteurs'] + ', ' + search[i].metadata['Lien'] + "\n"
200
- verbatim_text = verbatim_text + str(count) + ". " + search[i].metadata['Phrase'] + "\n"
201
  sources = [
202
  cl.Text(name="Sources", content=sources_text, display="inline")
203
  ]
@@ -211,7 +211,7 @@ async def on_message(message: cl.Message):
211
  ]
212
 
213
  await cl.Message(
214
- content="Verbatim : ",
215
  elements=verbatim,
216
  ).send()
217
  #await msg.send()
 
197
  count = count + 1
198
  test.append(search[i].metadata['Lien'])
199
  sources_text = sources_text + str(count) + ". " + search[i].metadata['Titre'] + ', ' + search[i].metadata['Auteurs'] + ', ' + search[i].metadata['Lien'] + "\n"
200
+ verbatim_text = verbatim_text + "<p>" + str(count) + ". " + search[i].metadata['Phrase'] + "</p><p>&nbsp;</p>"
201
  sources = [
202
  cl.Text(name="Sources", content=sources_text, display="inline")
203
  ]
 
211
  ]
212
 
213
  await cl.Message(
214
+ content="📚 Liste des Verbatim ",
215
  elements=verbatim,
216
  ).send()
217
  #await msg.send()