Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -272,13 +272,21 @@ def _load_block_catalog(block_type: str) -> Dict:
|
|
| 272 |
|
| 273 |
# --- Global variable for the block catalog ---
|
| 274 |
ALL_SCRATCH_BLOCKS_CATALOG = {}
|
| 275 |
-
BLOCK_CATALOG_PATH = r"blocks\blocks.json" # Define the path to your JSON file
|
| 276 |
-
HAT_BLOCKS_PATH = r"blocks\hat_blocks.json" # Path to the hat blocks JSON file
|
| 277 |
-
STACK_BLOCKS_PATH = r"blocks\stack_blocks.json" # Path to the stack blocks JSON file
|
| 278 |
-
REPORTER_BLOCKS_PATH = r"blocks\reporter_blocks.json" # Path to the reporter blocks JSON file
|
| 279 |
-
BOOLEAN_BLOCKS_PATH = r"blocks\boolean_blocks.json" # Path to the boolean blocks JSON file
|
| 280 |
-
C_BLOCKS_PATH = r"blocks\c_blocks.json" # Path to the C blocks JSON file
|
| 281 |
-
CAP_BLOCKS_PATH = r"blocks\cap_blocks.json" # Path to the cap blocks JSON file
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 282 |
|
| 283 |
# Load the block catalogs from their respective JSON files
|
| 284 |
# ================== HAT BLOCK ===============================================
|
|
|
|
| 272 |
|
| 273 |
# --- Global variable for the block catalog ---
|
| 274 |
ALL_SCRATCH_BLOCKS_CATALOG = {}
|
| 275 |
+
#BLOCK_CATALOG_PATH = r"blocks\blocks.json" # Define the path to your JSON file
|
| 276 |
+
#HAT_BLOCKS_PATH = r"blocks\hat_blocks.json" # Path to the hat blocks JSON file
|
| 277 |
+
#STACK_BLOCKS_PATH = r"blocks\stack_blocks.json" # Path to the stack blocks JSON file
|
| 278 |
+
#REPORTER_BLOCKS_PATH = r"blocks\reporter_blocks.json" # Path to the reporter blocks JSON file
|
| 279 |
+
#BOOLEAN_BLOCKS_PATH = r"blocks\boolean_blocks.json" # Path to the boolean blocks JSON file
|
| 280 |
+
#C_BLOCKS_PATH = r"blocks\c_blocks.json" # Path to the C blocks JSON file
|
| 281 |
+
#CAP_BLOCKS_PATH = r"blocks\cap_blocks.json" # Path to the cap blocks JSON file
|
| 282 |
+
|
| 283 |
+
BLOCK_CATALOG_PATH = "blocks" # Define the path to your JSON file
|
| 284 |
+
HAT_BLOCKS_PATH = "hat_blocks" # Path to the hat blocks JSON file
|
| 285 |
+
STACK_BLOCKS_PATH = "stack_blocks" # Path to the stack blocks JSON file
|
| 286 |
+
REPORTER_BLOCKS_PATH = "reporter_blocks" # Path to the reporter blocks JSON file
|
| 287 |
+
BOOLEAN_BLOCKS_PATH = "boolean_blocks" # Path to the boolean blocks JSON file
|
| 288 |
+
C_BLOCKS_PATH = "c_blocks" # Path to the C blocks JSON file
|
| 289 |
+
CAP_BLOCKS_PATH = "cap_blocks" # Path to the cap blocks JSON file
|
| 290 |
|
| 291 |
# Load the block catalogs from their respective JSON files
|
| 292 |
# ================== HAT BLOCK ===============================================
|