alexkueck commited on
Commit
c2e6a1f
·
verified ·
1 Parent(s): d733cfd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -49,11 +49,11 @@ MODEL_NAME_HF = "HuggingFaceH4/zephyr-7b-alpha" #"mistralai/Mixtral-8x7B-Instru
49
 
50
  #HuggingFace Reop ID--------------------------------
51
  #repo_id = "meta-llama/Llama-2-13b-chat-hf"
52
- repo_id = "HuggingFaceH4/zephyr-7b-alpha" #das Modell ist echt gut!!! Vom MIT
53
  #repo_id = "TheBloke/Yi-34B-Chat-GGUF"
54
  #repo_id = "meta-llama/Llama-2-70b-chat-hf"
55
  #repo_id = "tiiuae/falcon-40b"
56
- #repo_id = "Vicuna-33b"
57
  #repo_id = "alexkueck/ChatBotLI2Klein"
58
  #repo_id = "mistralai/Mistral-7B-v0.1"
59
  #repo_id = "internlm/internlm-chat-7b"
@@ -276,9 +276,9 @@ def generate_auswahl(prompt_in, file, file_history, chatbot, history, anzahl_doc
276
  summary = "<b>Zusammenfassung: </b>\n" + str(results['answer']) + "\n\n<b>Auszüge dazu: </b>"
277
  #summary += " ".join(['Dokument: ' + str(doc['titel']) + ' Seite: ' + str(doc['seite']) + '\nAuschnitt: ' + str(doc["content"]) for doc in results['relevant_docs']])
278
  summary += " ".join([
279
- '<b>\nDokument: </b> <span style="color: #BB70FC;">' + str(doc['titel']) + '</span> '
280
  ' (<b>Seite:</b></span> <span style="color: red;">' + str(doc['seite']) + '</span>)<br>'
281
- '<span><b>Auschnitt:</b> ' + str(doc["content"]) + '</span>\n'
282
  for doc in results['relevant_docs']
283
  ])
284
  history = history + [[prompt_in, summary]]
 
49
 
50
  #HuggingFace Reop ID--------------------------------
51
  #repo_id = "meta-llama/Llama-2-13b-chat-hf"
52
+ #repo_id = "HuggingFaceH4/zephyr-7b-alpha" #das Modell ist echt gut!!! Vom MIT
53
  #repo_id = "TheBloke/Yi-34B-Chat-GGUF"
54
  #repo_id = "meta-llama/Llama-2-70b-chat-hf"
55
  #repo_id = "tiiuae/falcon-40b"
56
+ repo_id = "Vicuna-33b"
57
  #repo_id = "alexkueck/ChatBotLI2Klein"
58
  #repo_id = "mistralai/Mistral-7B-v0.1"
59
  #repo_id = "internlm/internlm-chat-7b"
 
276
  summary = "<b>Zusammenfassung: </b>\n" + str(results['answer']) + "\n\n<b>Auszüge dazu: </b>"
277
  #summary += " ".join(['Dokument: ' + str(doc['titel']) + ' Seite: ' + str(doc['seite']) + '\nAuschnitt: ' + str(doc["content"]) for doc in results['relevant_docs']])
278
  summary += " ".join([
279
+ '<div><b>Dokument: </b> <span style="color: #BB70FC;">' + str(doc['titel']) + '</span> '
280
  ' (<b>Seite:</b></span> <span style="color: red;">' + str(doc['seite']) + '</span>)<br>'
281
+ '<span><b>Auschnitt:</b> ' + str(doc["content"]) + '</span></div>\n'
282
  for doc in results['relevant_docs']
283
  ])
284
  history = history + [[prompt_in, summary]]