Update app.py
Browse files
app.py
CHANGED
@@ -32,7 +32,7 @@ def invoke(openai_api_key, prompt, rag_option):
|
|
32 |
if (prompt == ""):
|
33 |
raise gr.Error("Prompt is required.")
|
34 |
if (rag_option is None):
|
35 |
-
raise gr.Error("Retrieval
|
36 |
|
37 |
os.environ["OPENAI_API_KEY"] = openai_api_key
|
38 |
|
|
|
32 |
if (prompt == ""):
|
33 |
raise gr.Error("Prompt is required.")
|
34 |
if (rag_option is None):
|
35 |
+
raise gr.Error("Retrieval-Augmented Generation is required.")
|
36 |
|
37 |
os.environ["OPENAI_API_KEY"] = openai_api_key
|
38 |
|