Milad Alshomary
commited on
Commit
·
b623cb3
1
Parent(s):
10883a9
updates
Browse files- app.py +1 -1
- utils/interp_space_utils.py +5 -5
app.py
CHANGED
|
@@ -22,7 +22,7 @@ def load_config(path="config/config.yaml"):
|
|
| 22 |
return yaml.safe_load(f)
|
| 23 |
|
| 24 |
# A comment to trigger change in spaces
|
| 25 |
-
# comment
|
| 26 |
cfg = load_config()
|
| 27 |
|
| 28 |
|
|
|
|
| 22 |
return yaml.safe_load(f)
|
| 23 |
|
| 24 |
# A comment to trigger change in spaces
|
| 25 |
+
# comment 5
|
| 26 |
cfg = load_config()
|
| 27 |
|
| 28 |
|
utils/interp_space_utils.py
CHANGED
|
@@ -819,11 +819,11 @@ def compute_precomputed_regions(bg_proj, bg_ids, q_proj, c_proj, pred_idx, model
|
|
| 819 |
# q_proj, "Mystery Author"
|
| 820 |
# )
|
| 821 |
|
| 822 |
-
# #
|
| 823 |
-
|
| 824 |
-
|
| 825 |
-
|
| 826 |
-
|
| 827 |
|
| 828 |
# Regions 5-7: Between mystery and each candidate
|
| 829 |
for i in range(3):
|
|
|
|
| 819 |
# q_proj, "Mystery Author"
|
| 820 |
# )
|
| 821 |
|
| 822 |
+
# # Regions 2-4: Around each candidate
|
| 823 |
+
for i in range(3):
|
| 824 |
+
regions[f"Candidate {i+1} Neighborhood"] = get_region_around_point(
|
| 825 |
+
c_proj[i], f"Candidate {i+1}"
|
| 826 |
+
)
|
| 827 |
|
| 828 |
# Regions 5-7: Between mystery and each candidate
|
| 829 |
for i in range(3):
|