mirror of
https://github.com/ParisNeo/lollms.git
synced 2024-12-19 20:57:58 +00:00
synced core
This commit is contained in:
parent
a348791798
commit
f5cc2ba34b
@ -1,6 +1,7 @@
|
|||||||
import re
|
import re
|
||||||
from lollms.utilities import PackageManager
|
from lollms.utilities import PackageManager
|
||||||
|
from pipmaster import PackageManager
|
||||||
|
from bs4 import BeautifulSoup
|
||||||
def compress_js(js_code):
|
def compress_js(js_code):
|
||||||
# Patterns to match function, class, and variable declarations
|
# Patterns to match function, class, and variable declarations
|
||||||
function_pattern = r"function\s+(\w+)\s*\(([^)]*)\)"
|
function_pattern = r"function\s+(\w+)\s*\(([^)]*)\)"
|
||||||
|
@ -38,7 +38,7 @@ from lollms.com import LoLLMsCom
|
|||||||
from lollms.helpers import trace_exception
|
from lollms.helpers import trace_exception
|
||||||
from lollms.utilities import PackageManager
|
from lollms.utilities import PackageManager
|
||||||
|
|
||||||
from lollms.code_parser import compress_js, compress_python
|
from lollms.code_parser import compress_js, compress_python, compress_html
|
||||||
|
|
||||||
|
|
||||||
import requests
|
import requests
|
||||||
@ -3274,6 +3274,8 @@ fetch('/open_file', {
|
|||||||
return compress_js(code)
|
return compress_js(code)
|
||||||
def compress_python(self, code):
|
def compress_python(self, code):
|
||||||
return compress_python(code)
|
return compress_python(code)
|
||||||
|
def compress_html(self, code):
|
||||||
|
return compress_html(code)
|
||||||
|
|
||||||
class AIPersonalityInstaller:
|
class AIPersonalityInstaller:
|
||||||
def __init__(self, personality:AIPersonality) -> None:
|
def __init__(self, personality:AIPersonality) -> None:
|
||||||
|
@ -5,8 +5,11 @@ wget
|
|||||||
setuptools
|
setuptools
|
||||||
requests
|
requests
|
||||||
|
|
||||||
|
|
||||||
safe_store
|
safe_store
|
||||||
|
pipmaster
|
||||||
ascii_colors>=0.1.3
|
ascii_colors>=0.1.3
|
||||||
|
beautifulsoup4
|
||||||
|
|
||||||
autopep8
|
autopep8
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user