j-js commited on
Commit
5a248c9
·
verified ·
1 Parent(s): d3fed02

Delete explainers/formatters.py

Browse files
Files changed (1) hide show
  1. explainers/formatters.py +0 -23
explainers/formatters.py DELETED
@@ -1,23 +0,0 @@
1
- def format_explainer_response(result, sliders):
2
- lines = []
3
-
4
- if result.plain_english:
5
- lines.append(result.plain_english)
6
-
7
- if sliders.transparency > 0.5:
8
- if result.asks_for:
9
- lines.append(f"\n👉 The question is asking for: {result.asks_for}")
10
-
11
- if result.relationships:
12
- lines.append("\n🔗 Key relationship:")
13
- lines.extend(f"- {r}" for r in result.relationships)
14
-
15
- if result.needed_concepts:
16
- lines.append("\n🧠 Concepts you'll need:")
17
- lines.extend(f"- {c}" for c in result.needed_concepts)
18
-
19
- if result.trap_notes:
20
- lines.append("\n⚠️ Watch out:")
21
- lines.extend(f"- {t}" for t in result.trap_notes)
22
-
23
- return "\n".join(lines)