Skip to content

Commit

Permalink
b
Browse files Browse the repository at this point in the history
  • Loading branch information
polterguy committed Jan 3, 2024
1 parent 2b3693d commit 86398c2
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ <h3 mat-dialog-title class="mb-3">Embed Chatbot or AI Search on your website</h3
</a>

<button
mat-flat-button
mat-button
(click)="embed()">
Copy
</button>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ <h3 mat-dialog-title class="mb-0">Progress</h3>
<div mat-dialog-actions [align]="'end'">

<button
mat-button
mat-flat-button
color="primary"
mat-dialog-close>
Close
</button>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,20 @@ <h3 mat-dialog-title class="mb-0">Import <span class="d-md-inline d-none">traini
</div>

</form>

<div class="text-end me-2">

<mat-slide-toggle
labelPosition="before"
class="me-2"
matTooltip="Summarize training snippets that are too long to be effectively used"
[disabled]="uploading"
[(ngModel)]="summarize">
Summarize
</mat-slide-toggle>

</div>

</mat-tab>

<mat-tab>
Expand Down Expand Up @@ -317,20 +331,12 @@ <h4 class="mb-0 mt-3 text-center">{{getFileName()}}</h4>

<div mat-dialog-actions [align]="'end'">

<mat-slide-toggle
labelPosition="before"
class="me-2"
matTooltip="Summarize training snippets that are too long to be effectively used"
[disabled]="uploading"
[(ngModel)]="summarize">
Summarize
</mat-slide-toggle>

<button
mat-button
mat-flat-button
color="primary"
[disabled]="uploading"
mat-dialog-close>
Cancel
Close
</button>

</div>
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ export class MachineLearningImportComponent {
this.uploadIndex = 0;
this.uploadCount = 0;
this.files = event.target.files;
this.generalService.showLoading();
this.uploadCurrentFile();
}

Expand Down Expand Up @@ -115,6 +116,7 @@ export class MachineLearningImportComponent {
// Incrementing upload index
this.uploadIndex += 1;
if (this.uploadIndex >= this.files.length) {
this.generalService.hideLoading();
this.generalService.showFeedback(`${this.uploadCount} training snippets successfully imported`, 'successMessage');
this.uploading = false;
this.trainingFileModel = '';
Expand Down

0 comments on commit 86398c2

Please sign in to comment.