Update app.py
Browse files
app.py
CHANGED
@@ -403,7 +403,7 @@ def generate_auswahl(prompt, file, chatbot, history, rag_option, model_option, o
|
|
403 |
print(chatbot)
|
404 |
return chatbot, history, "Success"
|
405 |
else:
|
406 |
-
result =
|
407 |
#Antwort als Stream ausgeben... wenn Textantwort gefordert
|
408 |
chatbot[-1][1] = result
|
409 |
if (file == None):
|
|
|
403 |
print(chatbot)
|
404 |
return chatbot, history, "Success"
|
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):
|