oobabooga / one-click-installers

Simplified installers for oobabooga/text-generation-webui.
GNU Affero General Public License v3.0
550 stars 186 forks source link

Added two ENVs in webui.py to make it possbile to automate building d… #111

Closed mongolu closed 1 year ago

mongolu commented 1 year ago

…ocker image.

In Dockerfile i run start_linux.sh" which in the end it start python webui.py. In webui.py, at the end, it calls launch_webui(). I included an ENV var called OOBABOOGA_LAUNCH_AFTER_INSTALL which finish execution when false.

The second ENV var is for declaring which GPU choice to use in installation. It's called OOBABOOGA_INSTALL_GPU_CHOICE, and if it's set beforehand, it's used similarly with current variant of user input.

mongolu commented 1 year ago

Please do accept this PR. I'm using it in a Dockerfile which is relaying on one-click-installer and in the docker-compose it mustn't be running on call.

oobabooga commented 1 year ago

Docker is beyond the scope of this installer.

mongolu commented 1 year ago

Adding these 2 ENVs doesn't change nothing in the execution logic if they don't exist. So, kindly please, give it a second look.

Josh-XT commented 1 year ago

@oobabooga can you revisit this please? This would be very helpful.