admin: show each reference as Image N with the name the prompt gives it
This commit is contained in:
parent
5d342cb2c6
commit
f8c72e94ae
1 changed files with 12 additions and 0 deletions
12
admin.html
12
admin.html
|
|
@ -156,6 +156,18 @@ function shotHtml(s) {
|
||||||
+ '<img src="' + esc(s.plate_url)
|
+ '<img src="' + esc(s.plate_url)
|
||||||
+ '" alt="seed frame" style="width:100%;border-radius:6px"></div>');
|
+ '" alt="seed frame" style="width:100%;border-radius:6px"></div>');
|
||||||
}
|
}
|
||||||
|
// THE REFERENCES, NUMBERED THE WAY THE PROMPT NUMBERS THEM. The prompt
|
||||||
|
// says "Image 2 is the face of Hank Brogan" and binds the voice to it;
|
||||||
|
// that is only true if the second URL really is Brogan's sheet. A URL
|
||||||
|
// is not a face, so show the face.
|
||||||
|
(s.refs_sent || []).forEach(function (u, i) {
|
||||||
|
var who = (s.refs_named || [])[i] || '';
|
||||||
|
bits.push('<div><div class="kv"><b>Image ' + (i + 1) + '</b>'
|
||||||
|
+ (who ? ' · ' + esc(who) : '') + '</div>'
|
||||||
|
+ '<a href="' + esc(u) + '" target="_blank" rel="noopener">'
|
||||||
|
+ '<img src="' + esc(u) + '" alt="Image ' + (i + 1)
|
||||||
|
+ '" style="width:100%;border-radius:6px"></a></div>');
|
||||||
|
});
|
||||||
(s.audio_urls || []).forEach(function (u, i) {
|
(s.audio_urls || []).forEach(function (u, i) {
|
||||||
bits.push('<div><div class="kv">audio sent to the engine'
|
bits.push('<div><div class="kv">audio sent to the engine'
|
||||||
+ ((s.audio_urls.length > 1) ? ' (' + (i + 1) + ')' : '') + '</div>'
|
+ ((s.audio_urls.length > 1) ? ' (' + (i + 1) + ')' : '') + '</div>'
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue