Suchinthana commited on
Commit
83d658b
·
1 Parent(s): d6f2bf8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -123,10 +123,10 @@ def generate_static_map(geojson_data, invisible=False):
123
  coords = feature["geometry"]["coordinates"]
124
 
125
  if geom_type == "Point":
126
- m.add_marker(CircleMarker((coords[0], coords[1]), '#1C00ff00' if invisible == True else 'blue', 10))
127
  elif geom_type in ["MultiPoint", "LineString"]:
128
  for coord in coords:
129
- m.add_marker(CircleMarker((coord[0], coord[1]), '#1C00ff00' if invisible == True else 'blue', 10))
130
  elif geom_type in ["Polygon", "MultiPolygon"]:
131
  for polygon in coords:
132
  m.add_polygon(Polygon([(c[0], c[1]) for c in polygon], '#1C00ff00' if invisible == True else 'blue', 3))
@@ -161,7 +161,7 @@ def generate_satellite_image(init_image, mask_image, prompt):
161
  image=init_image,
162
  mask_image=mask_image,
163
  control_image=control_image,
164
- strength=0.45,
165
  guidance_scale=62
166
  )
167
  return result.images[0]
 
123
  coords = feature["geometry"]["coordinates"]
124
 
125
  if geom_type == "Point":
126
+ m.add_marker(CircleMarker((coords[0], coords[1]), '#1C00ff00' if invisible == True else 'blue', 100)
127
  elif geom_type in ["MultiPoint", "LineString"]:
128
  for coord in coords:
129
+ m.add_marker(CircleMarker((coord[0], coord[1]), '#1C00ff00' if invisible == True else 'blue', 100))
130
  elif geom_type in ["Polygon", "MultiPolygon"]:
131
  for polygon in coords:
132
  m.add_polygon(Polygon([(c[0], c[1]) for c in polygon], '#1C00ff00' if invisible == True else 'blue', 3))
 
161
  image=init_image,
162
  mask_image=mask_image,
163
  control_image=control_image,
164
+ strength=0.2,
165
  guidance_scale=62
166
  )
167
  return result.images[0]