alexkueck commited on
Commit
2623dfd
1 Parent(s): 4167057

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -433,7 +433,7 @@ def generate_auswahl(prompt, file, chatbot, history, rag_option, model_option, o
433
  chatbot[-1][1] = "<img src='data:image/png;base64,{0}'/>".format(b64encode(image_64).decode('utf-8'))
434
  history = history + [(prompt, result)]
435
  return chatbot, history, "Success"
436
- else:
437
  #kein Bild hochgeladen -> auf Text antworten...
438
  if (file == None):
439
  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,)
 
433
  chatbot[-1][1] = "<img src='data:image/png;base64,{0}'/>".format(b64encode(image_64).decode('utf-8'))
434
  history = history + [(prompt, result)]
435
  return chatbot, history, "Success"
436
+ else:
437
  #kein Bild hochgeladen -> auf Text antworten...
438
  if (file == None):
439
  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,)