emsesc commited on
Commit
f0ffdd8
·
1 Parent(s): f7c756b

add data popup

Browse files
Files changed (1) hide show
  1. app.py +51 -2
app.py CHANGED
@@ -259,7 +259,7 @@ app.layout = dmc.MantineProvider(
259
  className="paper-text",
260
  ),
261
  ],
262
- href="https://www.google.com/",
263
  target="_blank",
264
  className="no-bg-link header-link paper-link",
265
  ),
@@ -289,6 +289,55 @@ app.layout = dmc.MantineProvider(
289
  "marginBottom": "20px",
290
  },
291
  ),
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
292
  ],
293
  style={
294
  "display": "flex",
@@ -305,7 +354,7 @@ app.layout = dmc.MantineProvider(
305
  "This leaderboard assesses concentrations of power in the open model ecosystem through ranking user downloads across three groups: countries, developers, and models. Explore how user downloads of models are distributed among these groups and identify key players shaping the open model ecosystem on Hugging Face. This dashboard accompanies the paper titled ",
306
  html.A(
307
  "Economies of Open Intelligence: Tracing Power & Participation in the Model Ecosystem.",
308
- href="https://www.google.com/",
309
  target="_blank",
310
  style={
311
  "color": "#AC482A",
 
259
  className="paper-text",
260
  ),
261
  ],
262
+ href="https://www.dataprovenance.org/economies-of-open-intelligence.pdf",
263
  target="_blank",
264
  className="no-bg-link header-link paper-link",
265
  ),
 
289
  "marginBottom": "20px",
290
  },
291
  ),
292
+ # Add info popover next to the title
293
+ dmc.Popover(
294
+ width=350,
295
+ position="top",
296
+ withArrow=True,
297
+ shadow="md",
298
+ offset=8,
299
+ children=[
300
+ dmc.PopoverTarget(
301
+ html.Span(
302
+ DashIconify(
303
+ icon="mdi:information-outline",
304
+ width=22,
305
+ height=22,
306
+ style={
307
+ "marginLeft": "12px",
308
+ "color": "#AC482A",
309
+ "verticalAlign": "middle",
310
+ "cursor": "pointer",
311
+ },
312
+ ),
313
+ style={"display": "inline-block"},
314
+ )
315
+ ),
316
+ dmc.PopoverDropdown(
317
+ html.Div(
318
+ [
319
+ html.Span("Note: This dashboard uses ", style={"color": "#082030", "fontWeight": "500"}),
320
+ html.A(
321
+ "public Hugging Face download data",
322
+ href="https://huggingface.co/datasets/hfmlsoc/hub_weekly_snapshots",
323
+ target="_blank",
324
+ style={
325
+ "color": "#AC482A",
326
+ "fontWeight": "bold",
327
+ "textDecoration": "underline"
328
+ },
329
+ ),
330
+ html.Span(", which is less precise than data analyzed in the paper.", style={"color": "#082030", "fontWeight": "500"}),
331
+ ],
332
+ style={
333
+ "fontSize": "15px",
334
+ "lineHeight": "1.5",
335
+ "margin": "4px 0",
336
+ },
337
+ )
338
+ ),
339
+ ],
340
+ ),
341
  ],
342
  style={
343
  "display": "flex",
 
354
  "This leaderboard assesses concentrations of power in the open model ecosystem through ranking user downloads across three groups: countries, developers, and models. Explore how user downloads of models are distributed among these groups and identify key players shaping the open model ecosystem on Hugging Face. This dashboard accompanies the paper titled ",
355
  html.A(
356
  "Economies of Open Intelligence: Tracing Power & Participation in the Model Ecosystem.",
357
+ href="https://www.dataprovenance.org/economies-of-open-intelligence.pdf",
358
  target="_blank",
359
  style={
360
  "color": "#AC482A",