Update app.py
Browse files
app.py
CHANGED
@@ -405,8 +405,6 @@ def generate_auswahl(prompt, file, chatbot, history, rag_option, model_option, o
|
|
405 |
else:
|
406 |
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,)
|
407 |
#Antwort als Stream ausgeben... wenn Textantwort gefordert
|
408 |
-
print ("chatbot vor result..............")
|
409 |
-
print(chatbot)
|
410 |
chatbot[-1][1] = result
|
411 |
if (file == None):
|
412 |
history = history + [(prompt, result)]
|
@@ -417,7 +415,7 @@ def generate_auswahl(prompt, file, chatbot, history, rag_option, model_option, o
|
|
417 |
print(history)
|
418 |
print("chatbot nach Zusatz und mit KI Antwort...........")
|
419 |
print(chatbot)
|
420 |
-
return
|
421 |
"""
|
422 |
for character in result:
|
423 |
history[-1][1] += character
|
|
|
405 |
else:
|
406 |
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,)
|
407 |
#Antwort als Stream ausgeben... wenn Textantwort gefordert
|
|
|
|
|
408 |
chatbot[-1][1] = result
|
409 |
if (file == None):
|
410 |
history = history + [(prompt, result)]
|
|
|
415 |
print(history)
|
416 |
print("chatbot nach Zusatz und mit KI Antwort...........")
|
417 |
print(chatbot)
|
418 |
+
return chatbot, history, "Success"
|
419 |
"""
|
420 |
for character in result:
|
421 |
history[-1][1] += character
|