Update app.py
Browse files
app.py
CHANGED
@@ -120,7 +120,7 @@ def wandb_trace(rag_option, prompt, completion, status_msg, start_time_ms, end_t
|
|
120 |
wandb.init(project = "openai-llm-rag")
|
121 |
if (rag_option == "Off"):
|
122 |
result = completion
|
123 |
-
else
|
124 |
result = completion["result"]
|
125 |
document_0_page_content = completion["source_documents"][0]["page_content"]
|
126 |
document_0_metadata = completion["source_documents"][0]["metadata"]
|
|
|
120 |
wandb.init(project = "openai-llm-rag")
|
121 |
if (rag_option == "Off"):
|
122 |
result = completion
|
123 |
+
else:
|
124 |
result = completion["result"]
|
125 |
document_0_page_content = completion["source_documents"][0]["page_content"]
|
126 |
document_0_metadata = completion["source_documents"][0]["metadata"]
|