SuhasGholkar commited on
Commit
b8e58dd
·
verified ·
1 Parent(s): d522330

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -9,7 +9,7 @@ import re
9
  # Make matplotlib happy in containers (already helped in your logs)
10
  os.environ.setdefault("MPLCONFIGDIR", "/tmp/mplconfig")
11
  try:
12
- os.makedirs(os.environ["MPLCONFIGDIR"], exist_ok=True)
13
  except Exception:
14
  pass
15
 
@@ -4551,8 +4551,7 @@ def render_rag_publisher():
4551
  cid = int(r["chat_id"])
4552
  uq = (r["user_input"] or "").strip()
4553
  plan_txt = _plan_text(r["llm_plan"]) if "llm_plan" in r.keys() else ""
4554
- doc = f"Q: {uq}
4555
- Plan: {plan_txt}"
4556
  docs.append(doc)
4557
  ids.append(f"chat_{cid}")
4558
  metas.append({
 
9
  # Make matplotlib happy in containers (already helped in your logs)
10
  os.environ.setdefault("MPLCONFIGDIR", "/tmp/mplconfig")
11
  try:
12
+ os.makedirs(os.environ["MPLCONFIGDIR"], exist_ok=True
13
  except Exception:
14
  pass
15
 
 
4551
  cid = int(r["chat_id"])
4552
  uq = (r["user_input"] or "").strip()
4553
  plan_txt = _plan_text(r["llm_plan"]) if "llm_plan" in r.keys() else ""
4554
+ doc = f"Q: {uq}\nPlan: {plan_txt}"
 
4555
  docs.append(doc)
4556
  ids.append(f"chat_{cid}")
4557
  metas.append({