alexkueck commited on
Commit
a79bbe3
1 Parent(s): 915de86

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -9
app.py CHANGED
@@ -459,15 +459,10 @@ def generate_text (prompt, chatbot, history, rag_option, model_option, openai_ap
459
  else:
460
  #splittet = False
461
  print("LLM aufrufen ohne RAG: ...........")
462
- if (model_option == "OpenAI"):
463
- resulti = llm_chain(llm, history_text_und_prompt)
464
- result = resulti.strip()
465
- else:
466
- data = {"inputs": prompt}
467
- response = requests.post(API_URL_TEXT, headers=HEADERS, json=data)
468
- result = response.json()
469
- print("result. HF API.....................")
470
- print(result)
471
 
472
 
473
  #Wenn keine Antwort möglich "Ich weiß es nicht" etc., dann versuchen mit Suche im Internet.
 
459
  else:
460
  #splittet = False
461
  print("LLM aufrufen ohne RAG: ...........")
462
+ resulti = llm_chain(llm, history_text_und_prompt)
463
+ result = resulti.strip()
464
+
465
+
 
 
 
 
 
466
 
467
 
468
  #Wenn keine Antwort möglich "Ich weiß es nicht" etc., dann versuchen mit Suche im Internet.