quick fixes
This commit is contained in:
parent
ab794287ea
commit
774becd220
@ -21,7 +21,7 @@
|
|||||||
</ng-container>
|
</ng-container>
|
||||||
</div>
|
</div>
|
||||||
<div class="button-container">
|
<div class="button-container">
|
||||||
<button *ngIf="sentencesArray.length > 1" (click)="resetFields()" class="button-primary button-color"></button>
|
<button *ngIf="sentencesArray.length > 1" (click)="resetFields()" class="button-primary button-color">Usuń pola</button>
|
||||||
<button (click)="duplicateField()" class="button-primary button-color">Dodaj pole</button>
|
<button (click)="duplicateField()" class="button-primary button-color">Dodaj pole</button>
|
||||||
<button [disabled]="!sentimentForm.valid" (click)="analyzeIrony(false)"
|
<button [disabled]="!sentimentForm.valid" (click)="analyzeIrony(false)"
|
||||||
class="button-primary button-color">Analizuj tekst</button>
|
class="button-primary button-color">Analizuj tekst</button>
|
||||||
|
@ -131,8 +131,8 @@ export class IronyAnalysisComponent implements OnInit {
|
|||||||
this.analysisLoading = true;
|
this.analysisLoading = true;
|
||||||
this.analysisResults = resp.predictions;
|
this.analysisResults = resp.predictions;
|
||||||
this.ironyBarChartData.datasets = [
|
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.non_irony) + ' brak ironii', backgroundColor: 'rgb(196, 196, 196) ', 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.irony], label: String(resp.count_labels.irony) + ' ironia', backgroundColor: '#65dec2', borderRadius: 15, },
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
error: () => {
|
error: () => {
|
||||||
|
Loading…
Reference in New Issue
Block a user