Skip to content

Commit

Permalink
fix: ui
Browse files Browse the repository at this point in the history
  • Loading branch information
Angular2Guy committed May 15, 2024
1 parent 1f396f2 commit 9652ca4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@
<mat-label i18n="@@imageQuery">Image query</mat-label>
<input matInput placeholder="query" [formControl]="queryControl">
</mat-form-field>
<button mat-flat-button color="primary" (click)="query()" [disabled]="queryControl.invalid || this.queryControl.untouched" i18n="@@query">Upload</button>
<button mat-flat-button color="primary" (click)="query()" [disabled]="queryControl.invalid || this.queryControl.untouched" i18n="@@query">Query</button>
<div class="images">
@for(myresult of results; track myresult.answer) {
<div class="horizontal-container">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export class ImageQueryComponent {
//'What do you see in the image? Describe the background. Describe the colors.'
protected imageForm = new FormGroup({
file: new FormControl<File | null>(null, Validators.required),
prompt: new FormControl<string>('', Validators.minLength(3))
prompt: new FormControl<string>('What do you see in the image? Describe the background. Describe the colors.', Validators.minLength(3))
});
protected queryControl = new FormControl<string>('', Validators.compose([Validators.required, Validators.minLength(3)]));
protected uploading = false;
Expand Down

0 comments on commit 9652ca4

Please sign in to comment.