Update app.py
Browse files
app.py
CHANGED
@@ -157,9 +157,9 @@ def invoke(openai_api_key, rag_option, prompt):
|
|
157 |
except Exception as e:
|
158 |
completion = e
|
159 |
raise gr.Error(e)
|
160 |
-
|
161 |
#wandb_log(prompt, completion, rag_option)
|
162 |
-
|
163 |
return completion
|
164 |
|
165 |
description = """<strong>Overview:</strong> Context-aware multimodal reasoning application using a <strong>large language model (LLM)</strong> with
|
|
|
157 |
except Exception as e:
|
158 |
completion = e
|
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
|