Update app.py
Browse files
app.py
CHANGED
@@ -293,7 +293,7 @@ def generate_auswahl(prompt_in, file, file_history, chatbot, history, anzahl_doc
|
|
293 |
'<div><b>Dokument: </b> <span style="color: #BB70FC;">' + str(doc['titel']) + '</span> '
|
294 |
' (<b>Seite:</b></span> <span style="color: red;">' + str(doc['seite']) + '</span>)<br>'
|
295 |
'<span><b>Auschnitt:</b> ' + str(doc["content"]) + '</span></div>'
|
296 |
-
'<div><span><b>Link: </b><span style="color: #BB70FC;">' + str(download_link
|
297 |
for doc in results['relevant_docs']])
|
298 |
|
299 |
history = history + [[prompt_in, summary]]
|
@@ -324,7 +324,6 @@ def download_link(doc):
|
|
324 |
file_url = f"https://huggingface.co/spaces/alexkueck/SucheRAG/resolve/main/chroma/kkg/{doc['pfad']}?token=hf_token"
|
325 |
return f'<b><a href="{file_url}" target="_blank" style="color: #BB70FC; font-weight: bold;">{doc["titel"]}</a></b>'
|
326 |
|
327 |
-
https://huggingface.co/spaces/alexkueck/SucheRAG/tree/main/chroma/kkg
|
328 |
|
329 |
########################################
|
330 |
# Bot- test gegen schädliche Bots die die Anwendung testen...
|
|
|
293 |
'<div><b>Dokument: </b> <span style="color: #BB70FC;">' + str(doc['titel']) + '</span> '
|
294 |
' (<b>Seite:</b></span> <span style="color: red;">' + str(doc['seite']) + '</span>)<br>'
|
295 |
'<span><b>Auschnitt:</b> ' + str(doc["content"]) + '</span></div>'
|
296 |
+
'<div><span><b>Link: </b><span style="color: #BB70FC;">' + str(doc['download_link']) + '</span></div>'
|
297 |
for doc in results['relevant_docs']])
|
298 |
|
299 |
history = history + [[prompt_in, summary]]
|
|
|
324 |
file_url = f"https://huggingface.co/spaces/alexkueck/SucheRAG/resolve/main/chroma/kkg/{doc['pfad']}?token=hf_token"
|
325 |
return f'<b><a href="{file_url}" target="_blank" style="color: #BB70FC; font-weight: bold;">{doc["titel"]}</a></b>'
|
326 |
|
|
|
327 |
|
328 |
########################################
|
329 |
# Bot- test gegen schädliche Bots die die Anwendung testen...
|