Spaces:
Running
Running
Update app.py
Browse files
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 |
-
|
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
|