From 71bd040834892a916f4a66a2b017fef765ff80e5 Mon Sep 17 00:00:00 2001
From: Ines Montani
Date: Mon, 30 Sep 2019 12:01:09 +0200
Subject: [PATCH] Update models.js [ci skip]
---
website/src/templates/models.js | 50 +++++++++++++++++----------------
1 file changed, 26 insertions(+), 24 deletions(-)
diff --git a/website/src/templates/models.js b/website/src/templates/models.js
index dbfab6877..159744aa8 100644
--- a/website/src/templates/models.js
+++ b/website/src/templates/models.js
@@ -239,7 +239,7 @@ const Model = ({ name, langId, langName, baseUrl, repo, compatibility, hasExampl
)}
-
+
{accuracy &&
accuracy.map(({ label, items }, i) =>
!items ? null : (
@@ -293,29 +293,31 @@ const Model = ({ name, langId, langName, baseUrl, repo, compatibility, hasExampl
.
- {Object.keys(labels).map(pipe => {
- const labelNames = labels[pipe] || []
- const help = LABEL_SCHEME_META[pipe]
- return (
-
-
-
- |
-
- {labelNames.map((label, i) => (
- <>
- {i > 0 && ', '}
-
- {label}
-
- >
- ))}
- |
-
- )
- })}
+
+ {Object.keys(labels).map(pipe => {
+ const labelNames = labels[pipe] || []
+ const help = LABEL_SCHEME_META[pipe]
+ return (
+
+
+
+ |
+
+ {labelNames.map((label, i) => (
+ <>
+ {i > 0 && ', '}
+
+ {label}
+
+ >
+ ))}
+ |
+
+ )
+ })}
+
)}