Update app.py
Browse files
app.py
CHANGED
@@ -334,11 +334,6 @@ def generate_auswahl(prompt_in, file, file_history, chatbot, history, anzahl_doc
|
|
334 |
else: #noch nicht validiert, oder kein Prompt
|
335 |
return chatbot, history, None, file_history, "Erst validieren oder einen Prompt eingeben!"
|
336 |
|
337 |
-
def download_link(doc):
|
338 |
-
# URL für das Herunterladen der Datei
|
339 |
-
file_url = f"https://huggingface.co/spaces/alexkueck/SucheRAG/resolve/main/chroma/kkg/{doc['pfad']}?token=hf_token"
|
340 |
-
return f'<b><a href="{file_url}" target="_blank" style="color: #BB70FC; font-weight: bold;">{doc["titel"]}</a></b>'
|
341 |
-
|
342 |
|
343 |
########################################
|
344 |
# Bot- test gegen schädliche Bots die die Anwendung testen...
|
|
|
334 |
else: #noch nicht validiert, oder kein Prompt
|
335 |
return chatbot, history, None, file_history, "Erst validieren oder einen Prompt eingeben!"
|
336 |
|
|
|
|
|
|
|
|
|
|
|
337 |
|
338 |
########################################
|
339 |
# Bot- test gegen schädliche Bots die die Anwendung testen...
|