Update main.py
Browse files
main.py
CHANGED
@@ -113,7 +113,7 @@ def Search(input, categorie):
|
|
113 |
if count <= 15:
|
114 |
count = count + 1
|
115 |
sources_text = sources_text + str(count) + ". " + search[i].metadata['title'] + ' (JDLP : ' + str(search[i].metadata['year']) + '), ' + search[i].metadata['author'] + ', https://cipen.univ-gustave-eiffel.fr/fileadmin/CIPEN/OPP/' + search[i].metadata['file'] + "\n"
|
116 |
-
verbatim_text = verbatim_text + "<p style='font-size:0.8rem'>" + str(count) + ". JDLP : " + search[i].metadata['jdlp'] + "</p><p>" + search[i].page_content + "</p>"
|
117 |
|
118 |
results = [sources_text, verbatim_text]
|
119 |
return results
|
|
|
113 |
if count <= 15:
|
114 |
count = count + 1
|
115 |
sources_text = sources_text + str(count) + ". " + search[i].metadata['title'] + ' (JDLP : ' + str(search[i].metadata['year']) + '), ' + search[i].metadata['author'] + ', https://cipen.univ-gustave-eiffel.fr/fileadmin/CIPEN/OPP/' + search[i].metadata['file'] + "\n"
|
116 |
+
verbatim_text = verbatim_text + "<p style='font-size:0.8rem'>" + str(count) + ". JDLP : " + search[i].metadata['jdlp'] + "</p><p style='font-size:0.8rem'>" + search[i].page_content + "</p>"
|
117 |
|
118 |
results = [sources_text, verbatim_text]
|
119 |
return results
|