Update app.py
Browse files
app.py
CHANGED
@@ -135,7 +135,7 @@ def invoke(openai_api_key, rag_option, prompt):
|
|
135 |
completion = ""
|
136 |
#wandb.login(key = wandb_api_key)
|
137 |
#wandb.init(project = "openai-llm-rag", config = config)
|
138 |
-
autolog()
|
139 |
try:
|
140 |
llm = ChatOpenAI(model_name = config["model"],
|
141 |
openai_api_key = openai_api_key,
|
@@ -159,7 +159,7 @@ def invoke(openai_api_key, rag_option, prompt):
|
|
159 |
raise gr.Error(e)
|
160 |
finally:
|
161 |
#wandb_log(prompt, completion, rag_option)
|
162 |
-
wandb.finish()
|
163 |
return completion
|
164 |
|
165 |
description = """<strong>Overview:</strong> Context-aware multimodal reasoning application using a <strong>large language model (LLM)</strong> with
|
|
|
135 |
completion = ""
|
136 |
#wandb.login(key = wandb_api_key)
|
137 |
#wandb.init(project = "openai-llm-rag", config = config)
|
138 |
+
#autolog()
|
139 |
try:
|
140 |
llm = ChatOpenAI(model_name = config["model"],
|
141 |
openai_api_key = openai_api_key,
|
|
|
159 |
raise gr.Error(e)
|
160 |
finally:
|
161 |
#wandb_log(prompt, completion, rag_option)
|
162 |
+
#wandb.finish()
|
163 |
return completion
|
164 |
|
165 |
description = """<strong>Overview:</strong> Context-aware multimodal reasoning application using a <strong>large language model (LLM)</strong> with
|