faizath commited on
Commit
cb28cb3
·
verified ·
1 Parent(s): f6f2530

fix(readme): render the card's images inline on the hub

Browse files

The Hub's stylesheet makes every image in a model card display:block with
2em margins, so each badge, logo and icon lands on its own line however
the markup is arranged. Inline styles override it; the Hub preserves them.

It also rewrites img src to an absolute repo path but leaves source
srcset untouched, so a picture element on a dark theme resolves against
the wrong origin and 404s. Dropping picture in favour of a single
mid-tone logo removes that dependency rather than working around it.

Files changed (1) hide show
  1. README.md +20 -26
README.md CHANGED
@@ -39,17 +39,17 @@ model-index:
39
  **Group 16** · IF3070 Foundations of Artificial Intelligence · STEI ITB
40
 
41
  <p>
42
- <img src="https://img.shields.io/badge/course-IF3070-3b5bdb?style=flat-square" alt="IF3070" />
43
- <img src="https://img.shields.io/badge/institution-STEI%20ITB-1f2937?style=flat-square" alt="STEI ITB" />
44
- <img src="https://img.shields.io/badge/year-2024%2F2025--1-6b7280?style=flat-square" alt="2024/2025-1" />
45
- <img src="https://img.shields.io/badge/group-16-3b5bdb?style=flat-square" alt="Group 16" />
46
  </p>
47
 
48
  <p>
49
- <img src="https://img.shields.io/badge/task-tabular--classification-3b5bdb?style=flat-square" alt="tabular classification" />
50
- <img src="https://img.shields.io/badge/parameters-500k-1f2937?style=flat-square" alt="500,001 parameters" />
51
- <img src="https://img.shields.io/badge/dataset-PhiUSIIL-6b7280?style=flat-square" alt="PhiUSIIL" />
52
- <img src="https://img.shields.io/badge/licence-MIT-3b5bdb?style=flat-square" alt="MIT" />
53
  </p>
54
 
55
  </div>
@@ -83,16 +83,10 @@ $ curl -s localhost:8000/predict -H 'content-type: application/json' -d '{
83
  **Built with**
84
 
85
  <p>
86
- <img src=".github/assets/logos/python.svg" width="18" height="18" align="top" alt="" /> Python &nbsp;
87
- <picture>
88
- <source media="(prefers-color-scheme: dark)" srcset=".github/assets/logos/numpy-dark.svg" />
89
- <img src=".github/assets/logos/numpy.svg" width="18" height="18" align="top" alt="" />
90
- </picture> NumPy &nbsp;
91
- <picture>
92
- <source media="(prefers-color-scheme: dark)" srcset=".github/assets/logos/pandas-dark.svg" />
93
- <img src=".github/assets/logos/pandas.svg" width="18" height="18" align="top" alt="" />
94
- </picture> pandas &nbsp;
95
- <img src=".github/assets/logos/docker.svg" width="18" height="18" align="top" alt="" /> Docker
96
  </p>
97
 
98
  **Links** — [Full application](https://github.com/fetiai/phishing-url-classifier) ·
@@ -283,12 +277,12 @@ this model, not only with the dataset.
283
  18222023
284
  <br /><br />
285
  <a href="https://github.com/thalitazhrr">
286
- <img src=".github/assets/github.svg" width="14" height="14" alt="" />
287
  thalitazhrr
288
  </a>
289
  <br />
290
  <a href="https://www.linkedin.com/in/thalitazahras/">
291
- <img src=".github/assets/linkedin.svg" width="14" height="14" alt="" />
292
  thalitazahras
293
  </a>
294
  </td>
@@ -301,12 +295,12 @@ this model, not only with the dataset.
301
  18222056
302
  <br /><br />
303
  <a href="https://github.com/IrfanMusthofa">
304
- <img src=".github/assets/github.svg" width="14" height="14" alt="" />
305
  IrfanMusthofa
306
  </a>
307
  <br />
308
  <a href="https://www.linkedin.com/in/irfanmusthofa/">
309
- <img src=".github/assets/linkedin.svg" width="14" height="14" alt="" />
310
  irfanmusthofa
311
  </a>
312
  </td>
@@ -319,12 +313,12 @@ this model, not only with the dataset.
319
  18222059
320
  <br /><br />
321
  <a href="https://github.com/EleanorCordelia">
322
- <img src=".github/assets/github.svg" width="14" height="14" alt="" />
323
  EleanorCordelia
324
  </a>
325
  <br />
326
  <a href="https://www.linkedin.com/in/eleanorcordelia/">
327
- <img src=".github/assets/linkedin.svg" width="14" height="14" alt="" />
328
  eleanorcordelia
329
  </a>
330
  </td>
@@ -337,12 +331,12 @@ this model, not only with the dataset.
337
  18222063
338
  <br /><br />
339
  <a href="https://github.com/faizath">
340
- <img src=".github/assets/github.svg" width="14" height="14" alt="" />
341
  faizath
342
  </a>
343
  <br />
344
  <a href="https://www.linkedin.com/in/faizath/">
345
- <img src=".github/assets/linkedin.svg" width="14" height="14" alt="" />
346
  faizath
347
  </a>
348
  </td>
 
39
  **Group 16** · IF3070 Foundations of Artificial Intelligence · STEI ITB
40
 
41
  <p>
42
+ <img src="https://img.shields.io/badge/course-IF3070-3b5bdb?style=flat-square" alt="IF3070" style="display:inline-block;margin:0;vertical-align:text-bottom" />
43
+ <img src="https://img.shields.io/badge/institution-STEI%20ITB-1f2937?style=flat-square" alt="STEI ITB" style="display:inline-block;margin:0;vertical-align:text-bottom" />
44
+ <img src="https://img.shields.io/badge/year-2024%2F2025--1-6b7280?style=flat-square" alt="2024/2025-1" style="display:inline-block;margin:0;vertical-align:text-bottom" />
45
+ <img src="https://img.shields.io/badge/group-16-3b5bdb?style=flat-square" alt="Group 16" style="display:inline-block;margin:0;vertical-align:text-bottom" />
46
  </p>
47
 
48
  <p>
49
+ <img src="https://img.shields.io/badge/task-tabular--classification-3b5bdb?style=flat-square" alt="tabular classification" style="display:inline-block;margin:0;vertical-align:text-bottom" />
50
+ <img src="https://img.shields.io/badge/parameters-500k-1f2937?style=flat-square" alt="500,001 parameters" style="display:inline-block;margin:0;vertical-align:text-bottom" />
51
+ <img src="https://img.shields.io/badge/dataset-PhiUSIIL-6b7280?style=flat-square" alt="PhiUSIIL" style="display:inline-block;margin:0;vertical-align:text-bottom" />
52
+ <img src="https://img.shields.io/badge/licence-MIT-3b5bdb?style=flat-square" alt="MIT" style="display:inline-block;margin:0;vertical-align:text-bottom" />
53
  </p>
54
 
55
  </div>
 
83
  **Built with**
84
 
85
  <p>
86
+ <img src=".github/assets/logos/python.svg" width="18" height="18" align="top" alt="" style="display:inline-block;margin:0;vertical-align:text-bottom" /> Python &nbsp;
87
+ <img src=".github/assets/logos/numpy-dark.svg" width="18" height="18" align="top" alt="" style="display:inline-block;margin:0;vertical-align:text-bottom" /> NumPy &nbsp;
88
+ <img src=".github/assets/logos/pandas-dark.svg" width="18" height="18" align="top" alt="" style="display:inline-block;margin:0;vertical-align:text-bottom" /> pandas &nbsp;
89
+ <img src=".github/assets/logos/docker.svg" width="18" height="18" align="top" alt="" style="display:inline-block;margin:0;vertical-align:text-bottom" /> Docker
 
 
 
 
 
 
90
  </p>
91
 
92
  **Links** — [Full application](https://github.com/fetiai/phishing-url-classifier) ·
 
277
  18222023
278
  <br /><br />
279
  <a href="https://github.com/thalitazhrr">
280
+ <img src=".github/assets/github.svg" width="14" height="14" alt="" style="display:inline-block;margin:0;vertical-align:text-bottom" />
281
  thalitazhrr
282
  </a>
283
  <br />
284
  <a href="https://www.linkedin.com/in/thalitazahras/">
285
+ <img src=".github/assets/linkedin.svg" width="14" height="14" alt="" style="display:inline-block;margin:0;vertical-align:text-bottom" />
286
  thalitazahras
287
  </a>
288
  </td>
 
295
  18222056
296
  <br /><br />
297
  <a href="https://github.com/IrfanMusthofa">
298
+ <img src=".github/assets/github.svg" width="14" height="14" alt="" style="display:inline-block;margin:0;vertical-align:text-bottom" />
299
  IrfanMusthofa
300
  </a>
301
  <br />
302
  <a href="https://www.linkedin.com/in/irfanmusthofa/">
303
+ <img src=".github/assets/linkedin.svg" width="14" height="14" alt="" style="display:inline-block;margin:0;vertical-align:text-bottom" />
304
  irfanmusthofa
305
  </a>
306
  </td>
 
313
  18222059
314
  <br /><br />
315
  <a href="https://github.com/EleanorCordelia">
316
+ <img src=".github/assets/github.svg" width="14" height="14" alt="" style="display:inline-block;margin:0;vertical-align:text-bottom" />
317
  EleanorCordelia
318
  </a>
319
  <br />
320
  <a href="https://www.linkedin.com/in/eleanorcordelia/">
321
+ <img src=".github/assets/linkedin.svg" width="14" height="14" alt="" style="display:inline-block;margin:0;vertical-align:text-bottom" />
322
  eleanorcordelia
323
  </a>
324
  </td>
 
331
  18222063
332
  <br /><br />
333
  <a href="https://github.com/faizath">
334
+ <img src=".github/assets/github.svg" width="14" height="14" alt="" style="display:inline-block;margin:0;vertical-align:text-bottom" />
335
  faizath
336
  </a>
337
  <br />
338
  <a href="https://www.linkedin.com/in/faizath/">
339
+ <img src=".github/assets/linkedin.svg" width="14" height="14" alt="" style="display:inline-block;margin:0;vertical-align:text-bottom" />
340
  faizath
341
  </a>
342
  </td>