File size: 656 Bytes
edda41a
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
import { ClapEntity } from "@aitube/clap"

import { getCharacterPrompt } from "./getCharacterPrompt"

/**
 * Return a prompt for a "formal" picture, centered, neutral etc
 * 
 * @param entity 
 * @returns 
 */
export function getCharacterReferencePrompt(entity: ClapEntity) {
  const characterPrompt = [
    `beautiful`,
    `close-up`,
    `photo portrait`,
    `id photo`,
    getCharacterPrompt(entity),
    `neutral expression`,
    `neutral background`,
    `frontal`,
    `photo studio`,
    `crisp`,
    `sharp`,
    `intricate details`,
    `centered`,
    // `aligned`
  ].map(i => i.trim()).filter(i => i).join(", ")
  
  return characterPrompt
}