Update app.py
Browse files
app.py
CHANGED
@@ -230,7 +230,7 @@ def invoke (prompt, history, openai_api_key, rag_option, temperature=0.9, max_ne
|
|
230 |
global splittet
|
231 |
|
232 |
#Prompt an history anhängen und einen Text daraus machen
|
233 |
-
|
234 |
|
235 |
#history für HuggingFace Models formatieren
|
236 |
#history_text_und_prompt = generate_prompt_with_history_hf(prompt, history)
|
@@ -239,7 +239,7 @@ def invoke (prompt, history, openai_api_key, rag_option, temperature=0.9, max_ne
|
|
239 |
#history_text_und_prompt = generate_prompt_with_history_openai(prompt, history)
|
240 |
|
241 |
#history für Langchain formatieren
|
242 |
-
history_text_und_prompt = generate_prompt_with_history_langchain(prompt, history)
|
243 |
|
244 |
if (openai_api_key == "" or openai_api_key == "sk-"):
|
245 |
#raise gr.Error("OpenAI API Key is required.")
|
|
|
230 |
global splittet
|
231 |
|
232 |
#Prompt an history anhängen und einen Text daraus machen
|
233 |
+
history_text_und_prompt = generate_prompt_with_history(prompt, history)
|
234 |
|
235 |
#history für HuggingFace Models formatieren
|
236 |
#history_text_und_prompt = generate_prompt_with_history_hf(prompt, history)
|
|
|
239 |
#history_text_und_prompt = generate_prompt_with_history_openai(prompt, history)
|
240 |
|
241 |
#history für Langchain formatieren
|
242 |
+
#history_text_und_prompt = generate_prompt_with_history_langchain(prompt, history)
|
243 |
|
244 |
if (openai_api_key == "" or openai_api_key == "sk-"):
|
245 |
#raise gr.Error("OpenAI API Key is required.")
|