Update main.py
Browse files
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'] + "
|
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> </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()
|