|
1 | 1 | <button mat-icon-button class="close-button" (click)="closeDialog2()"> |
2 | | - <mat-icon class="close-icon" >close</mat-icon> |
| 2 | + <mat-icon class="close-icon">close</mat-icon> |
3 | 3 | </button> |
| 4 | + |
4 | 5 | <div mat-dialog-content> |
5 | 6 | <mat-form-field id="type-field" class="action-button-with-margin" [floatLabel]="'always'"> |
6 | 7 | <mat-label>Input the known Information</mat-label> |
7 | 8 | <textarea matInput placeholder="Type in information" [formControl]="inputfield" cdkFocusInitial></textarea> |
8 | | - </mat-form-field> |
| 9 | + </mat-form-field> |
9 | 10 | </div> |
| 11 | + |
10 | 12 | <div mat-dialog-content *ngIf="showRephrasedInput"> |
11 | | - <p>Rephrased input: {{rephrasedInput}} </p> |
| 13 | + <p>Rephrased input: {{rephrasedInput}}</p> |
12 | 14 | </div> |
| 15 | + |
13 | 16 | <div mat-dialog-content *ngIf="showMatchingResults"> |
14 | | - <p>The best matching algorithm with cosine similarity is <span class="resultLink"(click)="openLink()">{{resultAlgorithm.name}}</span>. </p> |
15 | | - <p>The Cosine Similarity is <span class="similarityvalue">{{resultAlgorithm.cosineSimilarity}}</span> </p> |
| 17 | + <p>The best matching algorithm with cosine similarity is |
| 18 | + <span class="resultLink" (click)="openLink()">{{resultAlgorithm.name}}</span>. |
| 19 | + </p> |
| 20 | + <p>The Cosine Similarity is |
| 21 | + <span class="similarityvalue">{{resultAlgorithm.cosineSimilarity}}</span> |
| 22 | + </p> |
16 | 23 | </div> |
| 24 | + |
17 | 25 | <div> |
18 | 26 | <mat-form-field *ngIf="showMatchingResults"> |
19 | 27 | <mat-label>Number of displayed algorithms</mat-label> |
|
22 | 30 | </mat-select> |
23 | 31 | </mat-form-field> |
24 | 32 | </div> |
| 33 | + |
25 | 34 | <div> |
26 | 35 | <mat-table #table [dataSource]="tabledata" *ngIf="showMatchingResults"> |
27 | 36 | <ng-container matColumnDef="name"> |
28 | 37 | <mat-header-cell *matHeaderCellDef> Name </mat-header-cell> |
29 | | - <mat-cell *matCellDef="let result"> <span class="resultLink"(click)="openLink2(result.name)">{{result.name}}</span> </mat-cell> |
| 38 | + <mat-cell *matCellDef="let result"> |
| 39 | + <span class="resultLink" (click)="openLink2(result.name)">{{result.name}}</span> |
| 40 | + </mat-cell> |
30 | 41 | </ng-container> |
31 | 42 | <ng-container matColumnDef="cosineSimilarity"> |
32 | 43 | <mat-header-cell *matHeaderCellDef> Cosine similarity </mat-header-cell> |
|
36 | 47 | <mat-row *matRowDef="let row; columns: columnsToDisplay"></mat-row> |
37 | 48 | </mat-table> |
38 | 49 | </div> |
| 50 | + |
39 | 51 | <div mat-dialog-actions> |
40 | | - <button class="action-button-with-margin" (click)="closeDialog2()" mat-raised-button > |
| 52 | + <button class="action-button-with-margin" (click)="closeDialog2()" mat-raised-button> |
41 | 53 | <i class="material-icons"></i> close |
42 | 54 | </button> |
43 | | - <button class="action-button-with-margin" (click)="extractInformation(false) "mat-raised-button> |
| 55 | + |
| 56 | + <button class="action-button-with-margin" (click)="extractInformation(false)" mat-raised-button> |
44 | 57 | <i class="material-icons"></i> start textmatching |
45 | 58 | </button> |
46 | | - <button class="action-button-with-margin" (click)="extractInformation(true) "mat-raised-button> |
| 59 | + |
| 60 | + <button class="action-button-with-margin" (click)="extractInformation(true)" mat-raised-button> |
47 | 61 | <i class="material-icons"></i> start textmatching with rake |
48 | 62 | </button> |
49 | | - <section class="testsection"> |
50 | | - <input type="checkbox" class="example-margin" [checked]="checked" (change)="checkboxClicked($event)">rephrase Problem using OpenAI |
| 63 | + |
| 64 | + <section class="testsection"> |
| 65 | + <input type="checkbox" class="example-margin" [checked]="checked" (change)="checkboxClicked($event)"> |
| 66 | + rephrase Problem using OpenAI |
51 | 67 | </section> |
| 68 | + |
| 69 | + <!-- New buttons for Aggregate and Deploy --> |
| 70 | + <button class="action-button-with-margin" (click)="aggregateSolutions()" mat-raised-button> |
| 71 | + Aggregate Solutions |
| 72 | + </button> |
| 73 | + |
| 74 | + <button class="action-button-with-margin" [disabled]="!isAggregationComplete" (click)="deploySolution()" mat-raised-button> |
| 75 | + Deploy Solution |
| 76 | + </button> |
52 | 77 | </div> |
| 78 | + |
| 79 | +<!-- Styling --> |
53 | 80 | <style> |
54 | 81 | .resultLink { |
55 | | -cursor: pointer; |
56 | | -color: blue; |
| 82 | + cursor: pointer; |
| 83 | + color: blue; |
57 | 84 | } |
58 | 85 |
|
59 | 86 | .resultLink:hover { |
60 | | -opacity: 0.9; |
61 | | -color: pink; |
62 | | -text-decoration: underline; |
| 87 | + opacity: 0.9; |
| 88 | + color: pink; |
| 89 | + text-decoration: underline; |
63 | 90 | } |
64 | 91 |
|
65 | 92 | .similarityvalue { |
66 | | -color: red; |
| 93 | + color: red; |
67 | 94 | } |
68 | 95 |
|
69 | 96 | .example-margin:hover { |
70 | | -color: blue; |
| 97 | + color: blue; |
71 | 98 | } |
72 | 99 |
|
| 100 | +.action-button-with-margin { |
| 101 | + margin-right: 10px; |
| 102 | +} |
73 | 103 | </style> |
0 commit comments