Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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 (
|
| 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:
|