Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -205,7 +205,7 @@ class MapVisualization:
|
|
205 |
async () => {{
|
206 |
// Load D3.js modules
|
207 |
const script1 = document.createElement("script");
|
208 |
-
script1.src = "https://cdn.jsdelivr.net/npm/d3@7";
|
209 |
document.head.appendChild(script1);
|
210 |
|
211 |
// Wait for D3 to load
|
@@ -217,7 +217,7 @@ class MapVisualization:
|
|
217 |
|
218 |
// Load topojson
|
219 |
const script2 = document.createElement("script");
|
220 |
-
script2.src = "https://cdn.jsdelivr.net/npm/topojson@3";
|
221 |
document.head.appendChild(script2);
|
222 |
|
223 |
await new Promise(resolve => {{
|
@@ -520,8 +520,6 @@ class ApplicationFactory:
|
|
520 |
map_data = gr.JSON(value=app_state.to_json(), visible=False)
|
521 |
|
522 |
with gr.Column(scale=1):
|
523 |
-
# Recent events log
|
524 |
-
events_json = gr.JSON(label="Recent Events", value={})
|
525 |
|
526 |
# Overall statistics
|
527 |
total_docs, avg_completion, countries_over_50 = app_state.get_stats()
|
|
|
205 |
async () => {{
|
206 |
// Load D3.js modules
|
207 |
const script1 = document.createElement("script");
|
208 |
+
script1.src = "https://cdn.jsdelivr.net/npm/d3@7.9.0/dist/d3.min.js";
|
209 |
document.head.appendChild(script1);
|
210 |
|
211 |
// Wait for D3 to load
|
|
|
217 |
|
218 |
// Load topojson
|
219 |
const script2 = document.createElement("script");
|
220 |
+
script2.src = "https://cdn.jsdelivr.net/npm/topojson-client@3.1.0/dist/topojson-client.min.js";
|
221 |
document.head.appendChild(script2);
|
222 |
|
223 |
await new Promise(resolve => {{
|
|
|
520 |
map_data = gr.JSON(value=app_state.to_json(), visible=False)
|
521 |
|
522 |
with gr.Column(scale=1):
|
|
|
|
|
523 |
|
524 |
# Overall statistics
|
525 |
total_docs, avg_completion, countries_over_50 = app_state.get_stats()
|