fixed bug

This commit is contained in:
Saifeddine ALOUI 2024-02-26 19:43:33 +01:00
parent c29daa233d
commit dd774b36d5
6 changed files with 180 additions and 183 deletions

4
app.py
View File

@ -82,8 +82,8 @@ if __name__ == "__main__":
config.allowed_origins += config["host"]
else:
config.allowed_origins += get_ip_addresses()
sio = socketio.AsyncServer(async_mode="asgi", cors_allowed_origins=config.allowed_origins+[f"https://localhost:{config['port']}" if is_https else f"http://localhost:{config['port']}"], ping_timeout=1200, ping_interval=30) # Enable CORS for selected origins
allowed_origins = config.allowed_origins+[f"https://localhost:{config['port']}" if is_https else f"http://localhost:{config['port']}"]
sio = socketio.AsyncServer(async_mode="asgi", cors_allowed_origins=allowed_origins, ping_timeout=1200, ping_interval=30) # Enable CORS for selected origins
LOLLMSWebUI.build_instance(config=config, lollms_paths=lollms_paths, args=args, sio=sio)
lollmsElfServer:LOLLMSWebUI = LOLLMSWebUI.get_instance()

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-5d77d38a.js"></script>
<link rel="stylesheet" href="/assets/index-e91c42de.css">
<script type="module" crossorigin src="/assets/index-ddd37040.js"></script>
<link rel="stylesheet" href="/assets/index-20357d3b.css">
</head>
<body>
<div id="app"></div>

View File

@ -360,7 +360,6 @@ export default {
data() {
return {
loader_v0:loader_v0,
memory_icon:memory_icon,
modelImgPlaceholder:modelImgPlaceholder,
bUrl:bUrl,
message: "",

View File

@ -94,12 +94,10 @@
<i data-feather="check"></i>
</button>
</div>
<div class="group relative w-max">
<button v-if="!loading" type="button" @click.stop="addToMemory" title="Add this discussion content to skills database"
class=" w-6 text-blue-400 hover:text-secondary duration-75 active:scale-90">
<img :src="memory_icon">
</button>
</div>
<button v-if="!loading" type="button" @click.stop="addToMemory" title="Add this discussion content to skills database"
class=" w-6 text-blue-400 hover:text-secondary duration-75 active:scale-90">
<img :src="memory_icon">
</button>
<div v-if="loading" title="Loading.." class="flex flex-row flex-grow justify-end">
<!-- SPINNER -->
@ -377,7 +375,7 @@ export default {
data() {
return {
memory_icon:memory_icon,
memory_icon: memory_icon,
posts_headers : {
'accept': 'application/json',
'Content-Type': 'application/json'