Update app.py
Browse files
app.py
CHANGED
@@ -411,6 +411,8 @@ def generate_auswahl(prompt, file, chatbot, history, rag_option, model_option, o
|
|
411 |
else:
|
412 |
result = generate_text(prompt, file, chatbot, history, rag_option, model_option, openai_api_key, k=3, top_p=0.6, temperature=0.5, max_new_tokens=4048, max_context_length_tokens=2048, repetition_penalty=1.3,)
|
413 |
#Antwort als Stream ausgeben... wenn Textantwort gefordert
|
|
|
|
|
414 |
chatbot[-1][1] = result
|
415 |
if (file == None):
|
416 |
history = history + [(prompt, result)]
|
@@ -421,7 +423,7 @@ def generate_auswahl(prompt, file, chatbot, history, rag_option, model_option, o
|
|
421 |
print(history)
|
422 |
print("chatbot nach Zusatz und mit KI Antwort...........")
|
423 |
print(chatbot)
|
424 |
-
return
|
425 |
"""
|
426 |
for character in result:
|
427 |
history[-1][1] += character
|
|
|
411 |
else:
|
412 |
result = generate_text(prompt, file, chatbot, history, rag_option, model_option, openai_api_key, k=3, top_p=0.6, temperature=0.5, max_new_tokens=4048, max_context_length_tokens=2048, repetition_penalty=1.3,)
|
413 |
#Antwort als Stream ausgeben... wenn Textantwort gefordert
|
414 |
+
print ("chatbot vor result..............")
|
415 |
+
print(chatbot)
|
416 |
chatbot[-1][1] = result
|
417 |
if (file == None):
|
418 |
history = history + [(prompt, result)]
|
|
|
423 |
print(history)
|
424 |
print("chatbot nach Zusatz und mit KI Antwort...........")
|
425 |
print(chatbot)
|
426 |
+
return history, history, "Success"
|
427 |
"""
|
428 |
for character in result:
|
429 |
history[-1][1] += character
|