Added vision to all

This commit is contained in:
Saifeddine ALOUI 2023-11-28 02:05:55 +01:00
parent 9b39fc067b
commit bfaff2f371
6 changed files with 8 additions and 8 deletions

View File

@ -598,7 +598,7 @@ class LoLLMsAPI(LollmsApplication):
file.write(chunk)
if is_last_chunk:
print('File received and saved successfully')
ASCIIColors.yellow('File received and saved successfully')
if self.personality.processor:
result = self.personality.processor.add_file(file_path, partial(self.process_chunk, client_id=client_id))
else:
@ -1294,6 +1294,7 @@ class LoLLMsAPI(LollmsApplication):
tokens_conditionning = self.model.tokenize(conditionning)
n_cond_tk = len(tokens_conditionning)
# Tokenize the documentation text and calculate its number of tokens
if len(documentation)>0:
tokens_documentation = self.model.tokenize(documentation)

5
app.py
View File

@ -13,7 +13,7 @@ __github__ = "https://github.com/ParisNeo/lollms-webui"
__copyright__ = "Copyright 2023, "
__license__ = "Apache 2.0"
__version__ ="7.5 (Alpha)"
__version__ ="7.5 (Beta)"
main_repo = "https://github.com/ParisNeo/lollms-webui.git"
import os
@ -26,8 +26,7 @@ import time
import traceback
import webbrowser
from pathlib import Path
from lollms.utilities import AdvancedGarbageCollector
from lollms.utilities import reinstall_pytorch_with_cuda
from lollms.utilities import AdvancedGarbageCollector, reinstall_pytorch_with_cuda
def run_update_script(args=None):
update_script = Path(__file__).parent/"update_script.py"

@ -1 +1 @@
Subproject commit 6a4c48c72410e027115627b0a0a88f043639c0f7
Subproject commit 504c9362887fdaf7d656543e6078f8b3c1be1268

@ -1 +1 @@
Subproject commit 0c074692592f9e0eb78797f5364d01287ca68f1d
Subproject commit 9c67a1e14704b361dfa4b0b950c72bdf6fa00cb7

@ -1 +1 @@
Subproject commit 2dad80c7fb78c032941894990b33fd22cc62ea80
Subproject commit c1e4e210883cd2601825edb36e830e505f557752

@ -1 +1 @@
Subproject commit 39fdd6d0a6d8ccc919d42a843f8a9bce1f12c0e1
Subproject commit a45459880d616b6d263c0c42cae0be75467be6f8