alexkueck commited on
Commit
5e178c6
1 Parent(s): ac33630

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -395,7 +395,7 @@ def generate_auswahl(prompt, file, chatbot, history, rag_option, model_option, o
395
  print(history)
396
  return history, "Success"
397
  else:
398
- result = generate_text(prompt, file, 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,)
399
  #Antwort als Stream ausgeben... wenn Textantwort gefordert
400
  history[-1][1] = result
401
  print("history nach Zusatz und mit KI Antwort...........")
 
395
  print(history)
396
  return history, "Success"
397
  else:
398
+ 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,)
399
  #Antwort als Stream ausgeben... wenn Textantwort gefordert
400
  history[-1][1] = result
401
  print("history nach Zusatz und mit KI Antwort...........")