freealise commited on
Commit
cd2fa70
1 Parent(s): fed911d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -613,11 +613,12 @@ with gr.Blocks(css=css) as demo:
613
 
614
  if not coordinates:
615
  locations = json.loads(example_coords)
 
 
616
  else:
617
  locations = json.loads(coordinates)
618
-
619
- for k, location in enumerate(locations):
620
- locations[k] = location["latLng"]
621
  print(locations)
622
 
623
  # Process the video and get the path of the output video
 
613
 
614
  if not coordinates:
615
  locations = json.loads(example_coords)
616
+ for k, location in enumerate(locations):
617
+ locations[k] = location["latLng"]
618
  else:
619
  locations = json.loads(coordinates)
620
+ for k, location in enumerate(locations):
621
+ locations[k] = location["location"]["latLng"]
 
622
  print(locations)
623
 
624
  # Process the video and get the path of the output video