Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Vetchems/sd-civitai-browser
/ functions
Functions
27 in github.com/Vetchems/sd-civitai-browser
⨍
Functions
27
◇
Types & classes
1
↳
Endpoints
1
↓ 5 callers
Function
replace_invalid_chars
(file_name)
scripts/functions.py:147
↓ 3 callers
Function
get_dummy_path
Get the path to the dummy file for the given file_name
scripts/functions.py:25
↓ 3 callers
Function
request_civit_api
(api_url=None)
scripts/functions.py:404
↓ 2 callers
Function
download_file_thread
Download the file and save it to a local file @param url:string The URL of the file to download, example) https://example.com/file.txt (
scripts/functions.py:179
↓ 2 callers
Function
remove_dummy
(file_name)
scripts/functions.py:31
↓ 1 callers
Function
api_next_page
(next_page_url=None)
scripts/functions.py:299
↓ 1 callers
Function
api_to_data
(content_type, sort_type, use_search_term, search_term=None)
scripts/functions.py:292
↓ 1 callers
Function
assert_download_conditions
Asserts conditions for download. Returns DownloadRequestResponse if conditions not met, else returns refined args
scripts/api.py:23
↓ 1 callers
Function
check_dummy
(file_name)
scripts/functions.py:36
↓ 1 callers
Function
create_dummy
(file_name)
scripts/functions.py:19
↓ 1 callers
Function
register_download_api
(app:FastAPI)
scripts/api.py:57
↓ 1 callers
Function
remove_empty_directories
(path)
scripts/functions.py:39
↓ 1 callers
Function
update_dl_url
(model_name=None, model_version=None, model_filename=None)
scripts/functions.py:352
↓ 1 callers
Function
update_model_info
(model_name=None, model_version=None)
scripts/functions.py:369
↓ 1 callers
Function
wrapped_download_file_thread
Wraps download_file_thread to return DownloadRequestResponse
scripts/api.py:43
Function
auth
(credentials:HTTPBasicCredentials = Depends(HTTPBasic()))
scripts/api.py:63
Function
download_file
(url, file_name)
scripts/functions.py:53
Function
download_model
Download a model from a URL example : curl -X POST "http://localhost:7860/download/model" -H "accept: application/json" -H "Content-T
scripts/api.py:86
Function
on_ui_tabs_called
()
scripts/ui.py:5
Function
register_api
Registers hooks for app on webui startup
scripts/api.py:93
Function
save_image_files
(preview_image_html, model_filename, list_models, content_type)
scripts/functions.py:421
Function
save_text_file
(file_name, content_type, use_new_folder, trained_words, model_name)
scripts/functions.py:240
Function
update_everything
(list_models, list_versions, model_filename, dl_url)
scripts/functions.py:416
Function
update_model_list
(content_type, sort_type, use_search_term, search_term, show_nsfw)
scripts/functions.py:324
Function
update_model_versions
(model_name=None)
scripts/functions.py:339
Function
update_next_page
(show_nsfw)
scripts/functions.py:308
Function
wrapped_download_file_thread
Wrapped function that process args. model name can be empty, in which case it is extracted from file_name
scripts/functions.py:152