Update app.py
Browse files
app.py
CHANGED
@@ -325,10 +325,10 @@ def generate_auswahl(prompt_in, file, file_history, chatbot, history, anzahl_doc
|
|
325 |
relevant_docs = extract_document_info(relevant_docs_org)
|
326 |
|
327 |
#Ergebnisse für history und chatbot zusammenstellen
|
328 |
-
summary = str(results['answer']) + "\n\n
|
329 |
summary += " ".join([
|
330 |
'<div><b>Dokument/Link: </b> <span style="color: #BB70FC;"><a href="' + str(doc['download_link']) + '" target="_blank">' + str(doc['titel']) + '</a></span>'
|
331 |
-
'(<b>Seite:</span> <span style="color: red;">' + str(doc['seite']) + '</b></span>)<br>'
|
332 |
'<span><b>Auschnitt:</b> ' + str(doc["content"]) + '</span></div><br>'
|
333 |
#'<div><span><b>Link: </b><span style="color: #BB70FC;"><a href="' + str(doc['download_link']) + '" target="_blank">' + str(doc['titel']) + '</a></span></div><br>'
|
334 |
for doc in relevant_docs])
|
|
|
325 |
relevant_docs = extract_document_info(relevant_docs_org)
|
326 |
|
327 |
#Ergebnisse für history und chatbot zusammenstellen
|
328 |
+
summary = str(results['answer']) + "\n\n"
|
329 |
summary += " ".join([
|
330 |
'<div><b>Dokument/Link: </b> <span style="color: #BB70FC;"><a href="' + str(doc['download_link']) + '" target="_blank">' + str(doc['titel']) + '</a></span>'
|
331 |
+
' (<b>Seite:</span> <span style="color: red;">' + str(doc['seite']) + '</b></span>)<br>'
|
332 |
'<span><b>Auschnitt:</b> ' + str(doc["content"]) + '</span></div><br>'
|
333 |
#'<div><span><b>Link: </b><span style="color: #BB70FC;"><a href="' + str(doc['download_link']) + '" target="_blank">' + str(doc['titel']) + '</a></span></div><br>'
|
334 |
for doc in relevant_docs])
|