Spaces:
Running
Running
Display the number of images returned
Browse files- src/routes/+page.svelte +8 -0
src/routes/+page.svelte
CHANGED
@@ -3,6 +3,7 @@
|
|
3 |
|
4 |
let txt = '';
|
5 |
let strength = '0.85';
|
|
|
6 |
let isLoading = false;
|
7 |
let isOutputControlAdded = false;
|
8 |
let drawingBoard: any;
|
@@ -111,6 +112,8 @@
|
|
111 |
|
112 |
const { images: imagesBase64Strs }: { images: string[] } = json;
|
113 |
|
|
|
|
|
114 |
if (!imagesBase64Strs.length) {
|
115 |
return alert(
|
116 |
'All the results were flagged. Please try again with diffeerent sketch + prompt'
|
@@ -433,6 +436,11 @@
|
|
433 |
pro tip: upload img by dropping on the canvas
|
434 |
</p>
|
435 |
</div>
|
|
|
|
|
|
|
|
|
|
|
436 |
</div>
|
437 |
{/if}
|
438 |
</div>
|
|
|
3 |
|
4 |
let txt = '';
|
5 |
let strength = '0.85';
|
6 |
+
let imagesReturned = '0';
|
7 |
let isLoading = false;
|
8 |
let isOutputControlAdded = false;
|
9 |
let drawingBoard: any;
|
|
|
112 |
|
113 |
const { images: imagesBase64Strs }: { images: string[] } = json;
|
114 |
|
115 |
+
imagesReturned=imagesBase64Strs.length.toString();
|
116 |
+
|
117 |
if (!imagesBase64Strs.length) {
|
118 |
return alert(
|
119 |
'All the results were flagged. Please try again with diffeerent sketch + prompt'
|
|
|
436 |
pro tip: upload img by dropping on the canvas
|
437 |
</p>
|
438 |
</div>
|
439 |
+
<div>
|
440 |
+
<p class="my-4">
|
441 |
+
Images returned: {imagesReturned}
|
442 |
+
</p>
|
443 |
+
</div>
|
444 |
</div>
|
445 |
{/if}
|
446 |
</div>
|