alexkueck commited on
Commit
5438611
·
verified ·
1 Parent(s): d8e0ced

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -2
app.py CHANGED
@@ -568,8 +568,6 @@ def generate_code_antwort (prompt, chatbot, history, model_option, openai_api_k
568
  llm = ChatOpenAI(model_name = MODEL_NAME_CODE, openai_api_key = openai_api_key, temperature=temperature)#, top_p = top_p)
569
  #Prompt an history anhängen und einen Text daraus machen
570
  history_text_und_prompt = generate_prompt_with_history_openai(prompt, history)
571
- else:
572
- #oder an Hugging Face --------------------------
573
 
574
  print("LLM aufrufen ohne RAG: ...........")
575
  resulti = llm_chain(llm, history_text_und_prompt)
 
568
  llm = ChatOpenAI(model_name = MODEL_NAME_CODE, openai_api_key = openai_api_key, temperature=temperature)#, top_p = top_p)
569
  #Prompt an history anhängen und einen Text daraus machen
570
  history_text_und_prompt = generate_prompt_with_history_openai(prompt, history)
 
 
571
 
572
  print("LLM aufrufen ohne RAG: ...........")
573
  resulti = llm_chain(llm, history_text_und_prompt)