Update app.py
Browse files
app.py
CHANGED
@@ -456,10 +456,9 @@ def generate_text (prompt, file, chatbot, history, rag_option, model_option, ope
|
|
456 |
history_text_und_prompt = generate_prompt_with_history_openai(prompt, history)
|
457 |
else:
|
458 |
prompt_neu = process_image(file, prompt)
|
459 |
-
|
460 |
-
print(
|
461 |
-
history_text_und_prompt
|
462 |
-
|
463 |
#history für HuggingFace Models formatieren
|
464 |
#history_text_und_prompt = generate_prompt_with_history_hf(prompt, history)
|
465 |
#history für openAi formatieren
|
|
|
456 |
history_text_und_prompt = generate_prompt_with_history_openai(prompt, history)
|
457 |
else:
|
458 |
prompt_neu = process_image(file, prompt)
|
459 |
+
history_text_und_prompt = generate_prompt_with_history_openai(prompt_neu, history)
|
460 |
+
print("historyundtextundfile.................")
|
461 |
+
print(history_text_und_prompt)
|
|
|
462 |
#history für HuggingFace Models formatieren
|
463 |
#history_text_und_prompt = generate_prompt_with_history_hf(prompt, history)
|
464 |
#history für openAi formatieren
|