datacipen commited on
Commit
35a24a0
โ€ข
1 Parent(s): ef210dc

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +1 -1
main.py CHANGED
@@ -148,7 +148,7 @@ def Search(input, categorie):
148
  timeSeqRound = round(timeSeq)
149
  time = timedelta(seconds=timeSeqRound)
150
  sources_text = sources_text + '<div class="gridvid"><a target="_blank" title="' + search[i].metadata['titre'] + ' : ...' + search[i].page_content + '" href="' + search[i].metadata['video'] + '#start=' + str(timeSeq) + '"><img src="' + search[i].metadata['image'] + '" width="100%" alt="' + search[i].metadata['titre'] + ' : ...' + search[i].page_content + '"/><p>๐Ÿ•“ ' + str(time) + ' : ...' + search[i].page_content + '</p></a></div>'
151
- verbatim_text = verbatim_text + "<p style='font-size:0.8rem'>" + str(count) + ". " + search[i].metadata['titre'] + "</p><p style='font-size:0.8rem'>" + search[i].page_content + "</p>"
152
 
153
  results = [sources_text, verbatim_text, sources_offres]
154
  return results
 
148
  timeSeqRound = round(timeSeq)
149
  time = timedelta(seconds=timeSeqRound)
150
  sources_text = sources_text + '<div class="gridvid"><a target="_blank" title="' + search[i].metadata['titre'] + ' : ...' + search[i].page_content + '" href="' + search[i].metadata['video'] + '#start=' + str(timeSeq) + '"><img src="' + search[i].metadata['image'] + '" width="100%" alt="' + search[i].metadata['titre'] + ' : ...' + search[i].page_content + '"/><p>๐Ÿ•“ ' + str(time) + ' : ...' + search[i].page_content + '</p></a></div>'
151
+ verbatim_text = verbatim_text + "<p style='font-size:0.8rem'>" + str(count) + ". " + search[i].metadata['titre'] + "</p><p style='font-size:0.8rem'>๐Ÿ•“ "+ str(time) + " : " + search[i].page_content + "</p>"
152
 
153
  results = [sources_text, verbatim_text, sources_offres]
154
  return results