MCPcopy
hub / github.com/rsxdalv/TTS-WebUI / fn

Function fn

tts_webui/utils/pip_install.py:21–30  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

19
20def pip_install_wrapper(requirements, name, include_gradio=True):
21 def fn():
22 output = []
23 command = f"{requirements} gradio==5.49.1" if include_gradio else requirements
24 for line in _pip_install(command, name):
25 output.append(str(line))
26 yield "<br />".join(output)
27
28 write_log(output, name, type="pip-install")
29 return line
30 # verify installation by importing the package or drying run install
31
32 return fn
33

Callers 14

wrapperFunction · 0.85
wrapperFunction · 0.85
wrapperFunction · 0.85
wrapperFunction · 0.85
wrapperFunction · 0.85
wrapperFunction · 0.85
wrapperFunction · 0.85
innerFunction · 0.85
wrapperFunction · 0.85
wrapperFunction · 0.85
wrapper_bFunction · 0.85

Calls 6

get_torch_commandFunction · 0.90
_pip_installFunction · 0.85
write_logFunction · 0.85
_stream_shell_commandFunction · 0.85
_pip_uninstallFunction · 0.85
joinMethod · 0.80

Tested by

no test coverage detected