datacipen commited on
Commit
f98bb1b
1 Parent(s): e9f9397

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +1 -1
main.py CHANGED
@@ -147,7 +147,7 @@ def Search(input, categorie):
147
  timeSeq = search[i].metadata["time"]
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]
 
147
  timeSeq = search[i].metadata["time"]
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]