Update app.py
Browse files
app.py
CHANGED
|
@@ -14,7 +14,7 @@ DEFAULT_IMAGE = "original_image.jpg"
|
|
| 14 |
with open(SEMANTIC_DIPOLES_FILE, "r") as f:
|
| 15 |
semantic_dipoles = json.load(f)
|
| 16 |
# Transform semantic_dipoles into "A -> B" format
|
| 17 |
-
formatted_dipoles = [f"{pair[1]
|
| 18 |
|
| 19 |
# Helper to list all latent code folders
|
| 20 |
latent_code_folders = sorted(
|
|
|
|
| 14 |
with open(SEMANTIC_DIPOLES_FILE, "r") as f:
|
| 15 |
semantic_dipoles = json.load(f)
|
| 16 |
# Transform semantic_dipoles into "A -> B" format
|
| 17 |
+
formatted_dipoles = [f"{pair[1]} -> {pair[0]}" for pair in semantic_dipoles]
|
| 18 |
|
| 19 |
# Helper to list all latent code folders
|
| 20 |
latent_code_folders = sorted(
|