upgraded with some fixes

This commit is contained in:
Saifeddine ALOUI 2023-07-08 00:15:34 +02:00
parent f41f6fe6bf
commit e07c76deb3
5 changed files with 14 additions and 11 deletions

View File

@ -682,7 +682,9 @@ class LoLLMsAPPI(LollmsApplication):
if message_type == MSG_TYPE.MSG_TYPE_CHUNK:
self.current_generated_text += chunk
self.nb_received_tokens += 1
ASCIIColors.green(f"Received {self.nb_received_tokens} tokens",end="\r",flush=True)
ASCIIColors.green(f"Received {self.nb_received_tokens} tokens",end="\r")
sys.stdout = sys.__stdout__
sys.stdout.flush()
detected_anti_prompt = False
anti_prompt_to_remove=""
for prompt in self.personality.anti_prompts:

View File

@ -1,4 +1,4 @@
.dot{width:10px;height:10px;border-radius:50%}.dot-green{background-color:green}.dot-red{background-color:red}.scrollbar[data-v-3cb88319]{scrollbar-width:thin;scrollbar-color:var(--scrollbar-thumb-color) var(--scrollbar-track-color);white-space:pre-wrap;overflow-wrap:break-word}.scrollbar[data-v-3cb88319]::-webkit-scrollbar{width:8px}.scrollbar[data-v-3cb88319]::-webkit-scrollbar-track{background-color:var(--scrollbar-track-color)}.scrollbar[data-v-3cb88319]::-webkit-scrollbar-thumb{background-color:var(--scrollbar-thumb-color);border-radius:4px}.scrollbar[data-v-3cb88319]::-webkit-scrollbar-thumb:hover{background-color:var(--scrollbar-thumb-hover-color)}.toastItem-enter-active[data-v-3ffdabf3],.toastItem-leave-active[data-v-3ffdabf3]{transition:all .5s ease}.toastItem-enter-from[data-v-3ffdabf3],.toastItem-leave-to[data-v-3ffdabf3]{opacity:0;transform:translate(-30px)}.list-move[data-v-9e89fc16],.list-enter-active[data-v-9e89fc16],.list-leave-active[data-v-9e89fc16]{transition:all .5s ease}.list-enter-from[data-v-9e89fc16]{transform:translatey(-30px)}.list-leave-to[data-v-9e89fc16]{opacity:0;transform:translatey(30px)}.list-leave-active[data-v-9e89fc16]{position:absolute}.bounce-enter-active[data-v-9e89fc16]{animation:bounce-in-9e89fc16 .5s}.bounce-leave-active[data-v-9e89fc16]{animation:bounce-in-9e89fc16 .5s reverse}@keyframes bounce-in-9e89fc16{0%{transform:scale(0)}50%{transform:scale(1.25)}to{transform:scale(1)}}.bg-primary-light[data-v-9e89fc16]{background-color:#0ff}.hover[data-v-9e89fc16]:bg-primary-light:hover{background-color:#7fffd4}.font-bold[data-v-9e89fc16]{font-weight:700}.hljs-comment,.hljs-quote{color:#7285b7}.hljs-deletion,.hljs-name,.hljs-regexp,.hljs-selector-class,.hljs-selector-id,.hljs-tag,.hljs-template-variable,.hljs-variable{color:#ff9da4}.hljs-built_in,.hljs-link,.hljs-literal,.hljs-meta,.hljs-number,.hljs-params,.hljs-type{color:#ffc58f}.hljs-attribute{color:#ffeead}.hljs-addition,.hljs-bullet,.hljs-string,.hljs-symbol{color:#d1f1a9}.hljs-section,.hljs-title{color:#bbdaff}.hljs-keyword,.hljs-selector-tag{color:#ebbbff}.hljs{background:#002451;color:#fff}pre code.hljs{display:block;overflow-x:auto;padding:1em}code.hljs{padding:3px 5px}/*!
.dot{width:10px;height:10px;border-radius:50%}.dot-green{background-color:green}.dot-red{background-color:red}.scrollbar[data-v-3cb88319]{scrollbar-width:thin;scrollbar-color:var(--scrollbar-thumb-color) var(--scrollbar-track-color);white-space:pre-wrap;overflow-wrap:break-word}.scrollbar[data-v-3cb88319]::-webkit-scrollbar{width:8px}.scrollbar[data-v-3cb88319]::-webkit-scrollbar-track{background-color:var(--scrollbar-track-color)}.scrollbar[data-v-3cb88319]::-webkit-scrollbar-thumb{background-color:var(--scrollbar-thumb-color);border-radius:4px}.scrollbar[data-v-3cb88319]::-webkit-scrollbar-thumb:hover{background-color:var(--scrollbar-thumb-hover-color)}.toastItem-enter-active[data-v-3ffdabf3],.toastItem-leave-active[data-v-3ffdabf3]{transition:all .5s ease}.toastItem-enter-from[data-v-3ffdabf3],.toastItem-leave-to[data-v-3ffdabf3]{opacity:0;transform:translate(-30px)}.list-move[data-v-0cc308b3],.list-enter-active[data-v-0cc308b3],.list-leave-active[data-v-0cc308b3]{transition:all .5s ease}.list-enter-from[data-v-0cc308b3]{transform:translatey(-30px)}.list-leave-to[data-v-0cc308b3]{opacity:0;transform:translatey(30px)}.list-leave-active[data-v-0cc308b3]{position:absolute}.bounce-enter-active[data-v-0cc308b3]{animation:bounce-in-0cc308b3 .5s}.bounce-leave-active[data-v-0cc308b3]{animation:bounce-in-0cc308b3 .5s reverse}@keyframes bounce-in-0cc308b3{0%{transform:scale(0)}50%{transform:scale(1.25)}to{transform:scale(1)}}.bg-primary-light[data-v-0cc308b3]{background-color:#0ff}.hover[data-v-0cc308b3]:bg-primary-light:hover{background-color:#7fffd4}.font-bold[data-v-0cc308b3]{font-weight:700}.hljs-comment,.hljs-quote{color:#7285b7}.hljs-deletion,.hljs-name,.hljs-regexp,.hljs-selector-class,.hljs-selector-id,.hljs-tag,.hljs-template-variable,.hljs-variable{color:#ff9da4}.hljs-built_in,.hljs-link,.hljs-literal,.hljs-meta,.hljs-number,.hljs-params,.hljs-type{color:#ffc58f}.hljs-attribute{color:#ffeead}.hljs-addition,.hljs-bullet,.hljs-string,.hljs-symbol{color:#d1f1a9}.hljs-section,.hljs-title{color:#bbdaff}.hljs-keyword,.hljs-selector-tag{color:#ebbbff}.hljs{background:#002451;color:#fff}pre code.hljs{display:block;overflow-x:auto;padding:1em}code.hljs{padding:3px 5px}/*!
Theme: Tokyo-night-Dark
origin: https://github.com/enkia/tokyo-night-vscode-theme
Description: Original highlight.js style

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-72356ec7.js"></script>
<link rel="stylesheet" href="/assets/index-ad2fc7e5.css">
<script type="module" crossorigin src="/assets/index-c4755eb8.js"></script>
<link rel="stylesheet" href="/assets/index-7b086601.css">
</head>
<body>
<div id="app"></div>

View File

@ -2051,6 +2051,7 @@ export default {
// return
// }
this.update_binding(binding_object.binding.folder)
this.fetchModels();
//console.log('lol',binding_object)
}
},