upgraded personality editing

This commit is contained in:
Saifeddine ALOUI 2024-03-01 02:49:34 +01:00
parent 60c4066cc0
commit d4af6eefdb
6 changed files with 268 additions and 264 deletions

@ -1 +1 @@
Subproject commit 6b258468d01142dbbc82b59eb331a10709b17026
Subproject commit 6f120647a505396b1d61512579bed421f8a52548

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-c3e87417.js"></script>
<link rel="stylesheet" href="/assets/index-f2791640.css">
<script type="module" crossorigin src="/assets/index-9eeed105.js"></script>
<link rel="stylesheet" href="/assets/index-ac37b13c.css">
</head>
<body>
<div id="app"></div>

View File

@ -96,7 +96,7 @@
</button>
<button type="button" title="Download database"
class="flex items-center p-0.5 text-sm rounded-sm hover:text-red-600 active:scale-75"
@click="download_database">
@click="download_files">
<i data-feather="download-cloud" class="w-5 h-5 "></i>
</button>
</div>
@ -656,8 +656,8 @@ export default {
});
},
download_database(){
axios.get('/download_database')
download_files(){
axios.get('/download_files')
},
remove_file(file){
axios.get('/remove_file',{name: file}).then(res=>{

View File

@ -11,9 +11,19 @@
<span class="sr-only">Close modal</span>
</button>
<div class="relative w-full max-h-full ">
<form class="mb-4">
<div class="container relative items-center gap-2 rounded-lg border bg-white p-1.5 shadow-sm hover:shadow-none dark:border-gray-800 dark:bg-gray-900" style="height:500px; overflow-y: auto;">
<table class="w-full">
<div class="w-full h-full relative items-center gap-2 rounded-lg border bg-white p-1.5 shadow-sm hover:shadow-none dark:border-gray-800 dark:bg-gray-900" style="height:500px; overflow-y: auto;">
<div class="justify-center text-center items-center w-full bg-gray-800">
<div class="w-full flex flex-row mt-4 text-center justify-center">
<button type="submit" @click.prevent="submitForm" class="bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded">
Commit AI to Server
</button>
<button @click.prevent="hide()" class="bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded">
Close
</button>
</div>
<div class="w-full max-h-full container bg-gray-100">
<form class="mb-4 w-full">
<table class="w-full bg-gray-200">
<tr>
<td><label for="personalityConditioning">Personality Conditioning:</label></td><td><textarea id="personalityConditioning" class="w-full" v-model="config.personality_conditioning"></textarea></td>
</tr>
@ -74,15 +84,9 @@
<td><textarea id="antiPrompts" class="w-full" v-model="config.anti_prompts"></textarea></td>
</tr>
</table>
</div>
</form>
<div class="flex flex-row mt-4 text-center">
<button type="submit" @click.prevent="submitForm" class="bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded">
Commit AI to Server
</button>
<button @click.prevent="hide()" class="bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded">
Close
</button>
</div>
</div>
</div>
</div>
</div>