This commit is contained in:
Saifeddine ALOUI 2023-09-13 23:45:51 +02:00
parent 568e334970
commit cf7c7d05ca
6 changed files with 16 additions and 10 deletions

View File

@ -221,7 +221,7 @@ class LoLLMsAPPI(LollmsApplication):
if model_type=="gptq":
parts = model_path.split("/")
if len(parts)==2:
filename = parts[2]
filename = parts[1]
else:
filename = parts[4]
installation_path = installation_dir / filename

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-cd17b563.js"></script>
<link rel="stylesheet" href="/assets/index-e09d4cea.css">
<script type="module" crossorigin src="/assets/index-a48567d6.js"></script>
<link rel="stylesheet" href="/assets/index-a6be8b06.css">
</head>
<body>
<div id="app"></div>

View File

@ -507,6 +507,7 @@ export default {
this.$emit('stopGenerating')
},
addFiles(event) {
console.log("Adding file")
this.fileList = this.fileList.concat([...event.target.files])
this.isFileSentList = this.isFileSentList.concat([false] * this.fileList.length)
this.send_file(this.fileList[this.fileList.length-1])

View File

@ -1596,6 +1596,11 @@ export default {
}
};
this.socket.onclose = () => {
console.log('WebSocket connection lost.');
this.currentDiscussion=null
};
this.isCreated = true