mirror of
https://github.com/ParisNeo/lollms-webui.git
synced 2024-12-24 06:36:37 +00:00
updated web links adding
This commit is contained in:
parent
abeb63759b
commit
bbfb339699
@ -144,11 +144,7 @@ async def add_webpage(request: AddWebPageRequest):
|
|||||||
raise HTTPException(status_code=400, detail=f"Exception : {e}")
|
raise HTTPException(status_code=400, detail=f"Exception : {e}")
|
||||||
|
|
||||||
try:
|
try:
|
||||||
if not lollmsElfServer.personality.processor is None:
|
client.discussion.add_file(file_path, client, partial(lollmsElfServer.process_chunk, client_id = request.client_id))
|
||||||
lollmsElfServer.personality.processor.add_file(file_path, client, partial(lollmsElfServer.process_chunk, client_id = request.client_id))
|
|
||||||
# File saved successfully
|
|
||||||
else:
|
|
||||||
lollmsElfServer.personality.add_file(file_path, client, partial(lollmsElfServer.process_chunk, client_id = request.client_id))
|
|
||||||
# File saved successfully
|
# File saved successfully
|
||||||
lollmsElfServer.HideBlockingMessage()
|
lollmsElfServer.HideBlockingMessage()
|
||||||
lollmsElfServer.refresh_files()
|
lollmsElfServer.refresh_files()
|
||||||
|
@ -1 +1 @@
|
|||||||
Subproject commit f991f3f585be4904bba822301bc01eeb94d771f1
|
Subproject commit 7d1ff76edd35e8d2188fcdba3c9caa406ff84521
|
Loading…
Reference in New Issue
Block a user