alexkueck commited on
Commit
ef32ebd
1 Parent(s): ced6d3a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -294,7 +294,7 @@ def generate_auswahl(prompt_in, file, file_history, chatbot, history, rag_option
294
  #kein Bild hochgeladen -> auf Text antworten...
295
  status = "Antwort der KI ..."
296
  if (file == None and file_history == None):
297
- result, status = generate_text(prompt, chatbot, history, rag_option, model_option, openai_api_key, db, k=3, top_p=0.6, temperature=0.5, max_new_tokens=4048, max_context_length_tokens=2048, repetition_penalty=1.3,, top_k=35)
298
  history = history + [[prompt, result]]
299
  else:
300
  #Es wurde ein File neu angehängt -> wenn prompt dazu, das Bild analysieren
 
294
  #kein Bild hochgeladen -> auf Text antworten...
295
  status = "Antwort der KI ..."
296
  if (file == None and file_history == None):
297
+ result, status = generate_text(prompt, chatbot, history, rag_option, model_option, openai_api_key, db, k=3, top_p=0.6, temperature=0.5, max_new_tokens=4048, max_context_length_tokens=2048, repetition_penalty=1.3, top_k=35)
298
  history = history + [[prompt, result]]
299
  else:
300
  #Es wurde ein File neu angehängt -> wenn prompt dazu, das Bild analysieren