Suchinthana commited on
Commit
467d7be
·
1 Parent(s): a2786fb

hardcoded test

Browse files
Files changed (1) hide show
  1. app.py +36 -0
app.py CHANGED
@@ -174,6 +174,42 @@ def handle_query(query):
174
  response = process_openai_response(query)
175
  geojson_data = generate_geojson(response)
176
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
177
  # Generate the main map image
178
  map_image = generate_static_map(geojson_data)
179
 
 
174
  response = process_openai_response(query)
175
  geojson_data = generate_geojson(response)
176
 
177
+ geojson_data = {
178
+ "type": "FeatureCollection",
179
+ "features": [
180
+ {
181
+ "type": "Feature",
182
+ "properties": {
183
+ "description": "satellite image of the Coconut Triangle region, green fill, 4k, map, detailed, coconut palms, lush vegetation, high contrast"
184
+ },
185
+ "geometry": {
186
+ "type": "Polygon",
187
+ "coordinates": [
188
+ [
189
+ [
190
+ 80.364908,
191
+ 7.4870464
192
+ ],
193
+ [
194
+ 79.82933709234904,
195
+ 7.981840249999999
196
+ ],
197
+ [
198
+ 79.91598756451819,
199
+ 7.1190247499999995
200
+ ],
201
+ [
202
+ 80.364908,
203
+ 7.4870464
204
+ ]
205
+ ]
206
+ ]
207
+ }
208
+ }
209
+ ]
210
+ }
211
+
212
+
213
  # Generate the main map image
214
  map_image = generate_static_map(geojson_data)
215