Update app.py
Browse files
app.py
CHANGED
@@ -125,7 +125,7 @@ def invoke(openai_api_key, rag_option, prompt):
|
|
125 |
raise gr.Error("Retrieval Augmented Generation is required.")
|
126 |
if (prompt == ""):
|
127 |
raise gr.Error("Prompt is required.")
|
128 |
-
wandb.config[rag_option] = rag_option
|
129 |
try:
|
130 |
llm = ChatOpenAI(model_name = config.model,
|
131 |
openai_api_key = openai_api_key,
|
|
|
125 |
raise gr.Error("Retrieval Augmented Generation is required.")
|
126 |
if (prompt == ""):
|
127 |
raise gr.Error("Prompt is required.")
|
128 |
+
#wandb.config[rag_option] = rag_option
|
129 |
try:
|
130 |
llm = ChatOpenAI(model_name = config.model,
|
131 |
openai_api_key = openai_api_key,
|