added more control over tti

This commit is contained in:
Saifeddine ALOUI 2024-06-02 20:44:41 +02:00
parent 5b0acc677d
commit 5f30257e76
7 changed files with 270 additions and 192 deletions

View File

@ -1,5 +1,5 @@
# =================== Lord Of Large Language Multimodal Systems Configuration file ===========================
version: 108
version: 110
binding_name: null
model_name: null
model_variant: null
@ -162,6 +162,11 @@ openai_tts_voice: "alloy"
# ***************** TTI *****************
use_negative_prompt: true
use_ai_generated_negative_prompt: false
negative_prompt_generation_prompt: Generate negative prompt for the following prompt. negative prompt is a set of words that describe things we do not want to have in the generated image.
default_negative_prompt: (((ugly))), (((duplicate))), ((morbid)), ((mutilated)), out of frame, extra fingers, mutated hands, ((poorly drawn hands)), ((poorly drawn face)), (((mutation))), (((deformed))), blurry, ((bad anatomy)), (((bad proportions))), ((extra limbs)), cloned face, (((disfigured))), ((extra arms)), (((extra legs))), mutated hands, (fused fingers), (too many fingers), (((long neck))), ((watermark)), ((robot eyes))
# Image generation service
enable_sd_service: false
sd_base_url: http://localhost:7860

@ -1 +1 @@
Subproject commit 5a32bab6e9020f44ef95223e6c2332bcd5da2990
Subproject commit fe2ad88f1b4736ad32b26ce17829cb97b3bd26cf

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

4
web/dist/index.html vendored
View File

@ -6,8 +6,8 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>LoLLMS WebUI - Welcome</title>
<script type="module" crossorigin src="/assets/index-7a762a54.js"></script>
<link rel="stylesheet" href="/assets/index-eda686ad.css">
<script type="module" crossorigin src="/assets/index-b156a4c5.js"></script>
<link rel="stylesheet" href="/assets/index-b6ece522.css">
</head>
<body>
<div id="app"></div>

View File

@ -1400,6 +1400,79 @@
</table>
</Card>
<Card title="TTI settings" :is_subcard="true" class="pb-2 m-2">
<table class="bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500">
<tr>
<td style="min-width: 200px;">
<label for="use_negative_prompt" class="text-sm font-bold" style="margin-right: 1rem;">Use negative prompt:</label>
</td>
<td>
<div class="flex flex-row">
<input
type="checkbox"
id="use_negative_prompt"
required
v-model="configFile.use_negative_prompt"
@change="settingsChanged=true"
class="mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"
>
</div>
</td>
</tr>
<tr>
<td style="min-width: 200px;">
<label for="use_ai_generated_negative_prompt" class="text-sm font-bold" style="margin-right: 1rem;">Use AI generated negative prompt:</label>
</td>
<td>
<div class="flex flex-row">
<input
type="checkbox"
id="use_ai_generated_negative_prompt"
required
v-model="configFile.use_ai_generated_negative_prompt"
@change="settingsChanged=true"
class="mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"
>
</div>
</td>
</tr>
<tr>
<td style="min-width: 200px;">
<label for="negative_prompt_generation_prompt" class="text-sm font-bold" style="margin-right: 1rem;">Negative prompt generation prompt:</label>
</td>
<td>
<div class="flex flex-row">
<input
type="text"
id="negative_prompt_generation_prompt"
required
v-model="configFile.negative_prompt_generation_prompt"
@change="settingsChanged=true"
class="mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"
>
</div>
</td>
</tr>
<tr>
<td style="min-width: 200px;">
<label for="default_negative_prompt" class="text-sm font-bold" style="margin-right: 1rem;">Default negative prompt:</label>
</td>
<td>
<div class="flex flex-row">
<input
type="text"
id="default_negative_prompt"
required
v-model="configFile.default_negative_prompt"
@change="settingsChanged=true"
class="mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"
>
</div>
</td>
</tr>
</table>
</Card>
<Card title="Full Audio settings" :is_subcard="true" class="pb-2 m-2">
<table class="bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500">
<tr>

@ -1 +1 @@
Subproject commit 334aa83d0fbe5e456c3139d1a389b12b83eb3495
Subproject commit d4908cd34351d33016142fcb5401d19e76d344f2