From 774becd220a2da1e20dac81964745b72f530a118 Mon Sep 17 00:00:00 2001 From: szymonj98 Date: Thu, 15 Jun 2023 21:26:00 +0200 Subject: [PATCH] quick fixes --- .../irony-analysis/irony-analysis.component.html | 2 +- .../irony-analysis/irony-analysis.component.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/app/demo-models-page/irony-analysis/irony-analysis.component.html b/src/app/demo-models-page/irony-analysis/irony-analysis.component.html index 5ce218b..37d27cc 100644 --- a/src/app/demo-models-page/irony-analysis/irony-analysis.component.html +++ b/src/app/demo-models-page/irony-analysis/irony-analysis.component.html @@ -21,7 +21,7 @@
- + diff --git a/src/app/demo-models-page/irony-analysis/irony-analysis.component.ts b/src/app/demo-models-page/irony-analysis/irony-analysis.component.ts index 0af1391..b09267c 100644 --- a/src/app/demo-models-page/irony-analysis/irony-analysis.component.ts +++ b/src/app/demo-models-page/irony-analysis/irony-analysis.component.ts @@ -131,8 +131,8 @@ export class IronyAnalysisComponent implements OnInit { this.analysisLoading = true; this.analysisResults = resp.predictions; this.ironyBarChartData.datasets = [ - { data: [resp.count_labels.irony], label: String(resp.count_labels.non_irony) + ' brak ironii', backgroundColor: '#65dec2 ', borderRadius: 15, }, - { data: [resp.count_labels.non_irony], label: String(resp.count_labels.irony) + ' ironia', backgroundColor: 'rgb(196, 196, 196)', borderRadius: 15, }, + { data: [resp.count_labels.non_irony], label: String(resp.count_labels.non_irony) + ' brak ironii', backgroundColor: 'rgb(196, 196, 196) ', borderRadius: 15, }, + { data: [resp.count_labels.irony], label: String(resp.count_labels.irony) + ' ironia', backgroundColor: '#65dec2', borderRadius: 15, }, ] }, error: () => {