MCPcopy Create free account

hub / github.com/Vetchems/sd-civitai-browser / functions

Functions27 in github.com/Vetchems/sd-civitai-browser

↓ 5 callersFunctionreplace_invalid_chars
(file_name)
scripts/functions.py:147
↓ 3 callersFunctionget_dummy_path
Get the path to the dummy file for the given file_name
scripts/functions.py:25
↓ 3 callersFunctionrequest_civit_api
(api_url=None)
scripts/functions.py:404
↓ 2 callersFunctiondownload_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 callersFunctionremove_dummy
(file_name)
scripts/functions.py:31
↓ 1 callersFunctionapi_next_page
(next_page_url=None)
scripts/functions.py:299
↓ 1 callersFunctionapi_to_data
(content_type, sort_type, use_search_term, search_term=None)
scripts/functions.py:292
↓ 1 callersFunctionassert_download_conditions
Asserts conditions for download. Returns DownloadRequestResponse if conditions not met, else returns refined args
scripts/api.py:23
↓ 1 callersFunctioncheck_dummy
(file_name)
scripts/functions.py:36
↓ 1 callersFunctioncreate_dummy
(file_name)
scripts/functions.py:19
↓ 1 callersFunctionregister_download_api
(app:FastAPI)
scripts/api.py:57
↓ 1 callersFunctionremove_empty_directories
(path)
scripts/functions.py:39
↓ 1 callersFunctionupdate_dl_url
(model_name=None, model_version=None, model_filename=None)
scripts/functions.py:352
↓ 1 callersFunctionupdate_model_info
(model_name=None, model_version=None)
scripts/functions.py:369
↓ 1 callersFunctionwrapped_download_file_thread
Wraps download_file_thread to return DownloadRequestResponse
scripts/api.py:43
Functionauth
(credentials:HTTPBasicCredentials = Depends(HTTPBasic()))
scripts/api.py:63
Functiondownload_file
(url, file_name)
scripts/functions.py:53
Functiondownload_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
Functionon_ui_tabs_called
()
scripts/ui.py:5
Functionregister_api
Registers hooks for app on webui startup
scripts/api.py:93
Functionsave_image_files
(preview_image_html, model_filename, list_models, content_type)
scripts/functions.py:421
Functionsave_text_file
(file_name, content_type, use_new_folder, trained_words, model_name)
scripts/functions.py:240
Functionupdate_everything
(list_models, list_versions, model_filename, dl_url)
scripts/functions.py:416
Functionupdate_model_list
(content_type, sort_type, use_search_term, search_term, show_nsfw)
scripts/functions.py:324
Functionupdate_model_versions
(model_name=None)
scripts/functions.py:339
Functionupdate_next_page
(show_nsfw)
scripts/functions.py:308
Functionwrapped_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