alexkueck commited on
Commit
3a6a30a
·
verified ·
1 Parent(s): c0e3e40

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -276,7 +276,7 @@ def generate_auswahl(prompt_in, file, file_history, chatbot, history, anzahl_doc
276
  summary = " ".join([
277
  '<b>Dokument:</b> <span style="color: pink;">' + str(doc['titel']) + '</span> '
278
  '<span style="color: red;">Seite:</span> ' + str(doc['seite']) + '<br>'
279
- '<b>Auschnitt:</b> ' + str(doc["content"])
280
  for doc in results['relevant_docs']
281
  ])
282
  history = history + [[prompt_in, summary]]
 
276
  summary = " ".join([
277
  '<b>Dokument:</b> <span style="color: pink;">' + str(doc['titel']) + '</span> '
278
  '<span style="color: red;">Seite:</span> ' + str(doc['seite']) + '<br>'
279
+ '<b>Auschnitt:</b> ' + str(doc["page_content"])
280
  for doc in results['relevant_docs']
281
  ])
282
  history = history + [[prompt_in, summary]]