Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -30,6 +30,8 @@ def invoke(openai_api_key, prompt, rag_option):
|
|
30 |
if (rag_option is None):
|
31 |
raise gr.Error("Retrieval Augmented Generation is required.")
|
32 |
|
|
|
|
|
33 |
if (RUN_RAG_BATCH):
|
34 |
run_rag_batch(config)
|
35 |
|
|
|
30 |
if (rag_option is None):
|
31 |
raise gr.Error("Retrieval Augmented Generation is required.")
|
32 |
|
33 |
+
os.environ["OPENAI_API_KEY"] = openai_api_key
|
34 |
+
|
35 |
if (RUN_RAG_BATCH):
|
36 |
run_rag_batch(config)
|
37 |
|