Spaces:
Sleeping
Sleeping
Update variables.py
Browse files- variables.py +66 -107
variables.py
CHANGED
@@ -6,112 +6,72 @@ User Query: {user_query}
|
|
6 |
Current Zoom States: {current_zoom_states}
|
7 |
|
8 |
###Output Format###
|
9 |
-
{
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
-
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
-
|
61 |
-
|
62 |
-
|
63 |
-
|
64 |
-
|
65 |
-
|
66 |
-
|
67 |
-
|
68 |
-
|
69 |
-
|
70 |
-
|
71 |
-
|
72 |
-
|
73 |
-
|
74 |
-
|
75 |
-
"recommended_components": {
|
76 |
-
"component_name": "reason for recommendation based on zoom level",
|
77 |
-
"configuration": {}
|
78 |
-
}
|
79 |
-
}
|
80 |
-
}
|
81 |
-
|
82 |
-
###Example for "paint during napoleon war"###
|
83 |
-
{
|
84 |
-
"temporal": {
|
85 |
-
"component": "st.slider",
|
86 |
-
"current_zoom": {
|
87 |
-
"level": "period",
|
88 |
-
"range": [1799, 1815],
|
89 |
-
"explanation": "Napoleon's reign as First Consul and Emperor"
|
90 |
-
},
|
91 |
-
"available_zooms": {
|
92 |
-
"in": {
|
93 |
-
"range": [1812, 1815],
|
94 |
-
"explanation": "Focus on final campaigns and artistic responses"
|
95 |
-
}
|
96 |
-
}
|
97 |
-
},
|
98 |
-
"geographical": {
|
99 |
-
"component": "st.map",
|
100 |
-
"current_zoom": {
|
101 |
-
"level": "continent",
|
102 |
-
"locations": [
|
103 |
-
{
|
104 |
-
"name": "France",
|
105 |
-
"relevance": "Center of Napoleonic art production"
|
106 |
-
},
|
107 |
-
{
|
108 |
-
"name": "Spain",
|
109 |
-
"relevance": "Goya's war paintings perspective"
|
110 |
-
}
|
111 |
-
]
|
112 |
-
}
|
113 |
-
}
|
114 |
-
}
|
115 |
|
116 |
###Requirements###
|
117 |
1. Explain zoom level changes and their historical significance
|
@@ -123,7 +83,6 @@ Current Zoom States: {current_zoom_states}
|
|
123 |
|
124 |
Generate only the JSON response, maintaining strict JSON format."""
|
125 |
|
126 |
-
|
127 |
CONTEXTUAL_ZOOM_default_response = {
|
128 |
"analysis": {
|
129 |
"query_focus": "Default focus",
|
|
|
6 |
Current Zoom States: {current_zoom_states}
|
7 |
|
8 |
###Output Format###
|
9 |
+
{{
|
10 |
+
"analysis": {{
|
11 |
+
"query_focus": "main subject",
|
12 |
+
"historical_context": "brief explanation"
|
13 |
+
}},
|
14 |
+
"axis_configurations": {{
|
15 |
+
"temporal": {{
|
16 |
+
"component": "st.slider",
|
17 |
+
"current_zoom": {{
|
18 |
+
"level": "century/decade/year",
|
19 |
+
"range": [start, end],
|
20 |
+
"explanation": "Why this time range is relevant"
|
21 |
+
}},
|
22 |
+
"available_zooms": {{
|
23 |
+
"in": {{
|
24 |
+
"range": [narrower_start, narrower_end],
|
25 |
+
"explanation": "What focusing here reveals"
|
26 |
+
}},
|
27 |
+
"out": {{
|
28 |
+
"range": [broader_start, broader_end],
|
29 |
+
"explanation": "Broader historical context"
|
30 |
+
}}
|
31 |
+
}},
|
32 |
+
"impacted_by": {{
|
33 |
+
"geographical": "how location affects timeframe",
|
34 |
+
"style": "how style affects timeframe"
|
35 |
+
}}
|
36 |
+
}},
|
37 |
+
"geographical": {{
|
38 |
+
"component": "st.map",
|
39 |
+
"current_zoom": {{
|
40 |
+
"level": "continent/country/city",
|
41 |
+
"locations": [
|
42 |
+
{{
|
43 |
+
"name": "",
|
44 |
+
"lat": 0,
|
45 |
+
"lon": 0,
|
46 |
+
"relevance": "why this location matters"
|
47 |
+
}}
|
48 |
+
]
|
49 |
+
}},
|
50 |
+
"available_zooms": {{
|
51 |
+
"in": {{
|
52 |
+
"locations": ["more specific locations"],
|
53 |
+
"explanation": "What focusing here reveals"
|
54 |
+
}},
|
55 |
+
"out": {{
|
56 |
+
"locations": ["broader regions"],
|
57 |
+
"explanation": "Broader geographical context"
|
58 |
+
}}
|
59 |
+
}},
|
60 |
+
"impacted_by": {{
|
61 |
+
"temporal": "how time period affects locations",
|
62 |
+
"style": "how style affects locations"
|
63 |
+
}}
|
64 |
+
}},
|
65 |
+
"style": {{
|
66 |
+
"component": "st.multiselect",
|
67 |
+
"current_zoom": {{
|
68 |
+
"level": "movement/sub_movement/specific",
|
69 |
+
"options": ["list of styles"],
|
70 |
+
"explanation": "Style context for this period/location"
|
71 |
+
}}
|
72 |
+
}}
|
73 |
+
}}
|
74 |
+
}}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
75 |
|
76 |
###Requirements###
|
77 |
1. Explain zoom level changes and their historical significance
|
|
|
83 |
|
84 |
Generate only the JSON response, maintaining strict JSON format."""
|
85 |
|
|
|
86 |
CONTEXTUAL_ZOOM_default_response = {
|
87 |
"analysis": {
|
88 |
"query_focus": "Default focus",
|