bstraehle commited on
Commit
7c151aa
·
1 Parent(s): c42c62b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
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