alexkueck commited on
Commit
9dd2727
1 Parent(s): ec75eb7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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 = "ein Test...." #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):
 
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):