Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -138,7 +138,10 @@ def wandb_trace(rag_option, prompt, completion, chain, status_msg, start_time_ms
|
|
138 |
"model": config["model"],
|
139 |
"temperature": config["temperature"],
|
140 |
},
|
141 |
-
inputs = {"rag_option": rag_option if (str(status_msg) == "") else "",
|
|
|
|
|
|
|
142 |
outputs = {"result": result},
|
143 |
start_time_ms = start_time_ms,
|
144 |
end_time_ms = end_time_ms
|
|
|
138 |
"model": config["model"],
|
139 |
"temperature": config["temperature"],
|
140 |
},
|
141 |
+
inputs = {"rag_option": rag_option if (str(status_msg) == "") else "",
|
142 |
+
"prompt": str(prompt if (str(status_msg) == "") else ""),
|
143 |
+
"prompt_template": str((llm_template if (rag_option == RAG_OFF) else rag_template) if (str(status_msg) == "") else ""),
|
144 |
+
"docs_meta": "" if (rag_option == RAG_OFF or str(status_msg) != "") else docs_meta},
|
145 |
outputs = {"result": result},
|
146 |
start_time_ms = start_time_ms,
|
147 |
end_time_ms = end_time_ms
|