bstraehle commited on
Commit
b705821
·
1 Parent(s): 8da89d9

Update app.py

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