Skip to content

Commit

Permalink
fix: frontend
Browse files Browse the repository at this point in the history
  • Loading branch information
Angular2Guy committed May 5, 2024
1 parent e1dbba9 commit e97149e
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ <h1 i18n="@@imagequeryHeading">Image description</h1>
<div class="upload-spinner"><mat-spinner></mat-spinner></div>
} @else if(result) {
<div class="horizontal-container">
<div><img src="createImageUrl()"></div>
<div><img [src]="createImageUrl()"></div>
<div>{{result.answer}}</div>
</div>
} @else {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,13 @@
width: 100%;
}

.upload-spinner {
display: flex;
width: 100%;
justify-content: center;
}


.horizontal-container {
display: flex;
}
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ export class ImageQueryComponent {
//console.log(this.file);
if (!!this.imageForm.controls.file) {
this.result = null;
this.uploading = true;
const formData = new FormData();
const myFile = this.imageForm.controls.file.value;
formData.append('file', myFile as Blob, myFile?.name as string);
Expand Down
1 change: 1 addition & 0 deletions runOllama.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,5 @@ docker exec -it ollama ollama run stable-beluga:13bc
#docker exec -it ollama ollama run falcon:40b
#docker exec -it ollama ollama run sqlcoder:15b
#docker exec -it ollama ollama run mixtral:8x7b-text-v0.1-q6_K
#docker exec -it ollama ollama run llava:34b-v1.6-q6_K
#docker exec -it ollama bash

0 comments on commit e97149e

Please sign in to comment.