alexkueck commited on
Commit
8cbe931
1 Parent(s): 9501c88

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -259,7 +259,7 @@ def generate_prompt_with_history_openai(prompt, history):
259
  ##############################################
260
  def generate(text, history, rag_option, model_option, temperature=0.5, max_new_tokens=4048, top_p=0.6, repetition_penalty=1.3):
261
  #mit RAG
262
- if (rag_option is None):
263
  raise gr.Error("Retrieval Augmented Generation ist erforderlich.")
264
  if (prompt == ""):
265
  raise gr.Error("Prompt ist erforderlich.")
 
259
  ##############################################
260
  def generate(text, history, rag_option, model_option, temperature=0.5, max_new_tokens=4048, top_p=0.6, repetition_penalty=1.3):
261
  #mit RAG
262
+ if (rag_option is None):
263
  raise gr.Error("Retrieval Augmented Generation ist erforderlich.")
264
  if (prompt == ""):
265
  raise gr.Error("Prompt ist erforderlich.")