Update app.py
Browse files
app.py
CHANGED
|
@@ -427,6 +427,7 @@ def invoke (prompt, file, history, rag_option, model_option, openai_api_key, k=3
|
|
| 427 |
if (prompt.find('zeichnen') != -1):
|
| 428 |
result = response.content
|
| 429 |
else:
|
|
|
|
| 430 |
result = llm_chain(llm, history_text_und_prompt)
|
| 431 |
|
| 432 |
|
|
@@ -443,6 +444,8 @@ def invoke (prompt, file, history, rag_option, model_option, openai_api_key, k=3
|
|
| 443 |
return history, "Stop: Success"
|
| 444 |
else:
|
| 445 |
#Antwort als Stream ausgeben... wenn Textantwort gefordert
|
|
|
|
|
|
|
| 446 |
history[-1][1] = ""
|
| 447 |
for character in result:
|
| 448 |
history[-1][1] += character
|
|
|
|
| 427 |
if (prompt.find('zeichnen') != -1):
|
| 428 |
result = response.content
|
| 429 |
else:
|
| 430 |
+
print("ganz normale Ausführung.........................")
|
| 431 |
result = llm_chain(llm, history_text_und_prompt)
|
| 432 |
|
| 433 |
|
|
|
|
| 444 |
return history, "Stop: Success"
|
| 445 |
else:
|
| 446 |
#Antwort als Stream ausgeben... wenn Textantwort gefordert
|
| 447 |
+
print("history vor Zusatz...........")
|
| 448 |
+
print(history)
|
| 449 |
history[-1][1] = ""
|
| 450 |
for character in result:
|
| 451 |
history[-1][1] += character
|