Spaces:
Running
Running
Update variables.py
Browse files- variables.py +3 -0
variables.py
CHANGED
@@ -11,6 +11,9 @@ except json.JSONDecodeError:
|
|
11 |
# Fallback to empty dict if JSON is invalid
|
12 |
prompt_data = {}
|
13 |
|
|
|
|
|
|
|
14 |
# Create explanations dictionary with safe access
|
15 |
metaprompt_explanations = {
|
16 |
key: data.get("description", "No description available")
|
|
|
11 |
# Fallback to empty dict if JSON is invalid
|
12 |
prompt_data = {}
|
13 |
|
14 |
+
metaprompt_list = [key for key in prompt_data.keys()] if prompt_data else []
|
15 |
+
print(metaprompt_list)
|
16 |
+
|
17 |
# Create explanations dictionary with safe access
|
18 |
metaprompt_explanations = {
|
19 |
key: data.get("description", "No description available")
|