Install, run, and automate https://github.com/xorbitsai/inference with one click.
xinference.mp4
{
"method": "shell.run",
"params": {
"message": "python -m venv env"
}
}
Run pip install
to install xinference.
The template expression is for handling cross platform quirks (On windows it's env\Scripts\pip install xinference[all]
, and on other platforms it's env/bin/pip install xinference[all]
)
{
"method": "shell.run",
"params": {
"message": "env{{path.sep}}{{os.platform() === 'win32' ? 'Scripts' : 'bin'}}{{path.sep}}pip install xinference[all]"
}
}
After the installation is complete, display a notification to send users to the start.json script, so they can launch the web ui.
{
"method": "notify",
"params": {
"html": "<b>Success!</b> Successfully installed Xinference. Let's launch the web ui!",
"href": "start.json"
}
}
Starts the xinference server by running the command.
The template expression is for handling cross platform quirks (On windows it's env\Scripts\xinference
, and on other platforms it's env/bin/xinference
)
{
"method": "shell.run",
"params": {
"message": "env{{path.sep}}{{os.platform() === 'win32' ? 'Scripts' : 'bin'}}{{path.sep}}xinference"
}
}
- Run the install.json script to install
- Run the start.json script after installation (The install script will display a notification that sends you to start.json)
From that point on, whenever you start Pinokio, the start.json start script will automatically start and launch the Xinference web ui.