upgraded ui

This commit is contained in:
Saifeddine ALOUI 2024-05-19 10:09:36 +02:00
parent 71bca77d80
commit ec60edd10b
6 changed files with 291 additions and 273 deletions

2
app.py
View File

@ -121,7 +121,7 @@ if __name__ == "__main__":
from lollms.server.endpoints.lollms_skills_library import router as lollms_skills_library_router
from lollms.server.endpoints.lollms_user import router as lollms_user_router
from lollms.server.endpoints.lollms_xtts import router as lollms_xtts_add_router
from lollms.server.endpoints.lollms_tts import router as lollms_xtts_add_router
from lollms.server.endpoints.lollms_sd import router as lollms_sd_router
from lollms.server.endpoints.lollms_comfyui import router as lollms_comfyui_router

View File

@ -1,5 +1,5 @@
# =================== Lord Of Large Language Multimodal Systems Configuration file ===========================
version: 98
version: 99
binding_name: null
model_name: null
model_variant: null
@ -85,7 +85,7 @@ copy_to_clipboard_add_all_details: false
active_tts_service: "None" # xtts (offline), openai_tts (API key required)
active_tti_service: "None" # autosd (offline), dall-e (online)
active_stt_service: "None" # whisper (offline), asr (offline or online), openai_whiosper (API key required)
active_ttm_service: "None" # musicgen (offline)
# -------------------- Services --------------------------
# ***************** STT *****************

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-e80fb0e0.js"></script>
<link rel="stylesheet" href="/assets/index-bbaa5dec.css">
<script type="module" crossorigin src="/assets/index-d452ede2.js"></script>
<link rel="stylesheet" href="/assets/index-1f5d7ed5.css">
</head>
<body>
<div id="app"></div>

View File

@ -1274,11 +1274,11 @@
<div :class="{ 'hidden': servers_conf_collapsed }" class="flex flex-col mb-2 px-3 pb-0">
<Card title="Lollms service" :is_subcard="true" class="pb-2 m-2">
<Card title="Default services selection" :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="active_tts_service" class="text-sm font-bold" style="margin-right: 1rem;">Active TTS Service:</label>
<label for="active_tts_service" class="text-sm font-bold" style="margin-right: 1rem;" title="Default Text to speach engine">Active TTS Service:</label>
</td>
<td style="width: 100%;">
<select
@ -1296,7 +1296,26 @@
</tr>
<tr>
<td style="min-width: 200px;">
<label for="active_tti_service" class="text-sm font-bold" style="margin-right: 1rem;">Active TTI Service:</label>
<label for="active_stt_service" class="text-sm font-bold" style="margin-right: 1rem;" title="Default Speach to Text engine">Active STT Service:</label>
</td>
<td style="width: 100%;">
<select
id="active_stt_service"
required
v-model="configFile.active_stt_service"
@change="settingsChanged=true"
class="w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"
>
<option value="None">None</option>
<option value="whisper">Whisper</option>
<option value="openai_whisper">Open AI Whisper</option>
</select>
</td>
</tr>
<tr></tr>
<tr>
<td style="min-width: 200px;">
<label for="active_tti_service" class="text-sm font-bold" style="margin-right: 1rem;" title="Default Text to image engine">Active TTI Service:</label>
</td>
<td style="width: 100%;">
<select
@ -1317,19 +1336,18 @@
</tr>
<tr>
<td style="min-width: 200px;">
<label for="active_stt_service" class="text-sm font-bold" style="margin-right: 1rem;">Active STT Service:</label>
<label for="active_ttm_service" class="text-sm font-bold" style="margin-right: 1rem;" title="Default Text to Music engine">Active TTM Service:</label>
</td>
<td style="width: 100%;">
<select
id="active_stt_service"
id="active_ttm_service"
required
v-model="configFile.active_stt_service"
v-model="configFile.active_ttm_service"
@change="settingsChanged=true"
class="w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"
>
<option value="None">None</option>
<option value="whisper">Whisper</option>
<option value="openai_whisper">Open AI Whisper</option>
<option value="musicgen">Music Gen</option>
</select>
</td>
</tr>