alexkueck commited on
Commit
c345be3
1 Parent(s): d548939

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -455,7 +455,7 @@ def generate_text_zu_doc(file, prompt, k, rag_option, chatbot, history, vektorda
455
  #aus einem Text-Prompt die Antwort von KI bekommen
456
  #mit oder ohne RAG möglich
457
  def generate_text (prompt, chatbot, history, rag_option, model_option, openai_api_key, vektordatenbank, websuche, k=3, top_p=0.6, temperature=0.5, max_new_tokens=4048, max_context_length_tokens=2048, repetition_penalty=1.3, top_k=35):
458
- #global splittet
459
  #hugchat=False
460
  suche_im_Netz="Antwort der KI ..."
461
  print("Text pur..............................")
 
455
  #aus einem Text-Prompt die Antwort von KI bekommen
456
  #mit oder ohne RAG möglich
457
  def generate_text (prompt, chatbot, history, rag_option, model_option, openai_api_key, vektordatenbank, websuche, k=3, top_p=0.6, temperature=0.5, max_new_tokens=4048, max_context_length_tokens=2048, repetition_penalty=1.3, top_k=35):
458
+ global retriever
459
  #hugchat=False
460
  suche_im_Netz="Antwort der KI ..."
461
  print("Text pur..............................")