alexkueck commited on
Commit
c38d15d
1 Parent(s): dbcd7ed

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -263,7 +263,7 @@ def generate(text, history, rag_option, model_option, temperature=0.5, max_new_
263
  #mit RAG
264
  if (rag_option is None):
265
  raise gr.Error("Retrieval Augmented Generation ist erforderlich.")
266
- if (prompt == ""):
267
  raise gr.Error("Prompt ist erforderlich.")
268
 
269
  try:
 
263
  #mit RAG
264
  if (rag_option is None):
265
  raise gr.Error("Retrieval Augmented Generation ist erforderlich.")
266
+ if (text == ""):
267
  raise gr.Error("Prompt ist erforderlich.")
268
 
269
  try: