Skip to content

Commit

Permalink
Update the describeimage sample
Browse files Browse the repository at this point in the history
  • Loading branch information
xyproto committed Jun 26, 2024
1 parent 412ad9e commit 68bde38
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions samples/describeimage/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@
progressElement.textContent = percentComplete.toString() + '%';

if (percentComplete === 100) {
document.getElementById('status').textContent = 'Upload complete, please wait while Ollama and the llava model describes the image...';
document.getElementById('status').textContent = 'Upload complete, please wait while Ollama describes the image...';
progressElement.textContent = '';
}
} else {
Expand All @@ -96,7 +96,6 @@

function uploadComplete(evt) {
document.write(evt.target.responseText);
document.getElementById('status').textContent = 'Upload complete. Please wait for Ollama and the llava model to describe the image.';
}

function uploadFailed() {
Expand All @@ -112,7 +111,7 @@
<div class="container">
<form id="upload" enctype="multipart/form-data" method="post" action="describe.lua">
<div class="row">
<label for="fileToUpload">Select an image to upload and describe using Ollama and the llava model:</label>
<label for="fileToUpload">Select an image to upload and describe using Ollama:</label>
<input id="fileToUpload" type="file" name="fileToUpload" onchange="fileSelected('fileToUpload')">
</div>
<div id="fileName" class="file-info"></div>
Expand All @@ -123,7 +122,7 @@
<input type="button" onclick="uploadFile()" value="Upload and describe">
</div>
<div id="progressNumber" class="progress"></div>
<div id="status" class="file-info">Please wait after uploading the file.</div>
<div id="status" class="file-info">Please wait for Ollama after uploading the file. Ollama must be up and running locally.</div>
</form>
</div>
</body>
Expand Down

0 comments on commit 68bde38

Please sign in to comment.