Upload script.js
Browse files
script.js
CHANGED
@@ -10,7 +10,7 @@
|
|
10 |
]
|
11 |
},
|
12 |
q2: {
|
13 |
-
text: "Have you made the GPAI model available on the EU market
|
14 |
type: "question",
|
15 |
choices: [
|
16 |
{ text: "Yes", next: "q3" },
|
@@ -46,19 +46,19 @@
|
|
46 |
type: "outcome"
|
47 |
},
|
48 |
outcome_systemic_risk: {
|
49 |
-
text: "
|
50 |
type: "outcome",
|
51 |
-
articles: ["Article 53(1)(a)", "Article 53(1)(b)", "Article 53(1)(c)", "Article 53(1)(d)", "Article 54", "Article 55"
|
52 |
additional: "Additional obligations for GPAI with Systemic Risk: Article 55"
|
53 |
},
|
54 |
outcome_gpai_provider_with_obligations: {
|
55 |
-
text: "
|
56 |
type: "outcome",
|
57 |
class: "gpai",
|
58 |
-
articles: ["Article 53(1)(a)", "Article 53(1)(b)", "Article 53(1)(c)", "Article 53(1)(d)", "Article 54"
|
59 |
},
|
60 |
outcome_open_source: {
|
61 |
-
text: "You're an open-source GPAI provider. Open
|
62 |
type: "outcome",
|
63 |
class: "gpai",
|
64 |
articles: ["Article 53(1)(a)", "Article 53(1)(b)"],
|
@@ -253,9 +253,11 @@
|
|
253 |
const prevY = index === 0 ? startY + 30 : startY + 60 + index * config.questionSpacing + config.diamondSize;
|
254 |
svgContent += `<line x1="${config.startX}" y1="${prevY}" x2="${config.startX}" y2="${y - config.diamondSize}" stroke="#333" stroke-width="2" marker-end="url(#arrowhead)"/>`;
|
255 |
|
256 |
-
// Add
|
257 |
if (index < questions.length - 1) {
|
258 |
-
|
|
|
|
|
259 |
}
|
260 |
});
|
261 |
|
|
|
10 |
]
|
11 |
},
|
12 |
q2: {
|
13 |
+
text: "Have you made the GPAI model available on the EU market including via a commercial activity or via API or open repository?",
|
14 |
type: "question",
|
15 |
choices: [
|
16 |
{ text: "Yes", next: "q3" },
|
|
|
46 |
type: "outcome"
|
47 |
},
|
48 |
outcome_systemic_risk: {
|
49 |
+
text: "You're a GPAISR provider. Open source exemptions from GPAI provisions do not apply.",
|
50 |
type: "outcome",
|
51 |
+
articles: ["Article 53(1)(a)", "Article 53(1)(b)", "Article 53(1)(c)", "Article 53(1)(d)", "Article 54", "Article 55"],
|
52 |
additional: "Additional obligations for GPAI with Systemic Risk: Article 55"
|
53 |
},
|
54 |
outcome_gpai_provider_with_obligations: {
|
55 |
+
text: "You're a GPAI provider. Open source exemptions from GPAI provisions do not apply.",
|
56 |
type: "outcome",
|
57 |
class: "gpai",
|
58 |
+
articles: ["Article 53(1)(a)", "Article 53(1)(b)", "Article 53(1)(c)", "Article 53(1)(d)", "Article 54"],
|
59 |
},
|
60 |
outcome_open_source: {
|
61 |
+
text: "You're an open-source GPAI provider. Open source exemptions apply.",
|
62 |
type: "outcome",
|
63 |
class: "gpai",
|
64 |
articles: ["Article 53(1)(a)", "Article 53(1)(b)"],
|
|
|
253 |
const prevY = index === 0 ? startY + 30 : startY + 60 + index * config.questionSpacing + config.diamondSize;
|
254 |
svgContent += `<line x1="${config.startX}" y1="${prevY}" x2="${config.startX}" y2="${y - config.diamondSize}" stroke="#333" stroke-width="2" marker-end="url(#arrowhead)"/>`;
|
255 |
|
256 |
+
// Add correct label for vertical flow (except last question)
|
257 |
if (index < questions.length - 1) {
|
258 |
+
// Q2→Q3 and Q4→Q5 should be "Yes", Q1→Q2 and Q3→Q4 should be "No"
|
259 |
+
const label = (index === 1 || index === 3) ? "Yes" : "No"; // Q2(index=1)→Q3 and Q4(index=3)→Q5
|
260 |
+
svgContent += `<text x="${config.startX + 20}" y="${y + config.diamondSize + 20}" text-anchor="start" font-size="12" font-weight="bold" fill="#333">${label}</text>`;
|
261 |
}
|
262 |
});
|
263 |
|