Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -53,7 +53,7 @@ def document_retrieval_chroma(llm):
|
|
53 |
def invoke(openai_api_key, rag, prompt):
|
54 |
if (openai_api_key == ""):
|
55 |
raise gr.Error("OpenAI API Key is required.")
|
56 |
-
if (
|
57 |
raise gr.Error("Retrieval Augmented Generation is required.")
|
58 |
if (prompt == ""):
|
59 |
raise gr.Error("Prompt is required.")
|
|
|
53 |
def invoke(openai_api_key, rag, prompt):
|
54 |
if (openai_api_key == ""):
|
55 |
raise gr.Error("OpenAI API Key is required.")
|
56 |
+
if (rag is None):
|
57 |
raise gr.Error("Retrieval Augmented Generation is required.")
|
58 |
if (prompt == ""):
|
59 |
raise gr.Error("Prompt is required.")
|