Update app.py
Browse files
app.py
CHANGED
@@ -304,10 +304,10 @@ def generate_auswahl(prompt_in, file, file_history, chatbot, history, anzahl_doc
|
|
304 |
#Ergebnisse für history und chatbot zusammenstellen
|
305 |
summary = "<b>Zusammenfassung: </b>\n" + str(results['answer']) + "\n\n<b>Auszüge dazu: </b>"
|
306 |
summary += " ".join([
|
307 |
-
'<div><b>Dokument: </b> <span style="color: #BB70FC;">' + str(doc['titel']) + '</span>
|
308 |
'(<b>Seite:</span> <span style="color: red;">' + str(doc['seite']) + '</b></span>)<br>'
|
309 |
-
'<span><b>Auschnitt:</b> ' + str(doc["content"]) + '</span></div>'
|
310 |
-
'<div><span><b>Link: </b><span style="color: #BB70FC;"><a href="' + str(doc['download_link']) + '" target="_blank">' + str(doc['titel']) + '</a></span></div><br>'
|
311 |
for doc in results['relevant_docs']])
|
312 |
|
313 |
history = history + [[prompt_in, summary]]
|
|
|
304 |
#Ergebnisse für history und chatbot zusammenstellen
|
305 |
summary = "<b>Zusammenfassung: </b>\n" + str(results['answer']) + "\n\n<b>Auszüge dazu: </b>"
|
306 |
summary += " ".join([
|
307 |
+
'<div><b>Dokument/Link: </b> <span style="color: #BB70FC;"><a href="' + str(doc['download_link']) + '" target="_blank">' + str(doc['titel']) + '</a></span>'
|
308 |
'(<b>Seite:</span> <span style="color: red;">' + str(doc['seite']) + '</b></span>)<br>'
|
309 |
+
'<span><b>Auschnitt:</b> ' + str(doc["content"]) + '</span></div><br>'
|
310 |
+
#'<div><span><b>Link: </b><span style="color: #BB70FC;"><a href="' + str(doc['download_link']) + '" target="_blank">' + str(doc['titel']) + '</a></span></div><br>'
|
311 |
for doc in results['relevant_docs']])
|
312 |
|
313 |
history = history + [[prompt_in, summary]]
|