Spaces:
Running on CPU Upgrade

osv5m commited on
Commit
5bf9189
1 Parent(s): f0b4901

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -5
app.py CHANGED
@@ -309,18 +309,23 @@ class Engine(object):
309
  icon_star = BeautifyIcon(
310
  icon='star',
311
  border_color='red',
 
312
  )
313
  feature_group = FeatureGroup(name='Ground Truth')
314
  Marker(
315
  location=[true_lat, true_lon],
316
  popup="True location",
317
  icon=icon_star,
 
 
 
318
  ).add_to(feature_group)
319
  map.add_child(feature_group)
320
 
321
  icon_square = BeautifyIcon(
322
  icon_shape='rectangle-dot',
323
  border_color='green',
 
324
  )
325
  feature_group_best = FeatureGroup(name='Best Model')
326
  Marker(
@@ -334,6 +339,7 @@ class Engine(object):
334
  icon_circle = BeautifyIcon(
335
  icon_shape='circle-dot',
336
  border_color='blue',
 
337
  )
338
  feature_group_user = FeatureGroup(name='User')
339
  Marker(
@@ -394,11 +400,11 @@ class Engine(object):
394
 
395
  df = pd.DataFrame([self.get_model_average(who) for who in ['user', 'best', 'base']], columns=['who', 'GeoScore', 'Distance', 'Accuracy (country)']).round(2)
396
  result_text = (
397
- f"### GeoScore: <span style='color:green'>%s</span>/<span style='color:red'>%s</span>, distance: <span style='color:green'>%s</span>/<span style='color:red'>%s</span> km" % (
398
- score,
399
- self.df['score'].iloc[self.index+1],
400
- distance,
401
- self.df['distance'].iloc[self.index+1]
402
  )
403
  )
404
 
 
309
  icon_star = BeautifyIcon(
310
  icon='star',
311
  border_color='red',
312
+ border_width=10,
313
  )
314
  feature_group = FeatureGroup(name='Ground Truth')
315
  Marker(
316
  location=[true_lat, true_lon],
317
  popup="True location",
318
  icon=icon_star,
319
+ inner_icon_style='color:blue;font-size:20px;',
320
+ background_color='transparent',
321
+ border_color='transparent',
322
  ).add_to(feature_group)
323
  map.add_child(feature_group)
324
 
325
  icon_square = BeautifyIcon(
326
  icon_shape='rectangle-dot',
327
  border_color='green',
328
+ border_width=5,
329
  )
330
  feature_group_best = FeatureGroup(name='Best Model')
331
  Marker(
 
339
  icon_circle = BeautifyIcon(
340
  icon_shape='circle-dot',
341
  border_color='blue',
342
+ border_width=5,
343
  )
344
  feature_group_user = FeatureGroup(name='User')
345
  Marker(
 
400
 
401
  df = pd.DataFrame([self.get_model_average(who) for who in ['user', 'best', 'base']], columns=['who', 'GeoScore', 'Distance', 'Accuracy (country)']).round(2)
402
  result_text = (
403
+ f"### GeoScore: <span style='color:blue'>%s</span>/<span style='color:red'>%s</span>, distance: <span style='color:blue'>%s</span>/<span style='color:red'>%s</span> km" % (
404
+ round(score, 2),
405
+ round(self.df['score'].iloc[self.index+1], 2),
406
+ round(distance, 2),
407
+ round(self.df['distance'].iloc[self.index+1], 2)
408
  )
409
  )
410