()
| 19 | |
| 20 | def 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 |
no test coverage detected