app
app(host='127.0.0.1', port='auto')
Open the Shiny chat app
Details
Easily interact with an LLM by simply opening the Shiny app and using with the chat interface. If the app was closed, and reopened, chapy
will reuse the exact same host and port as the first time it was opened.
Restarting Python will automatically close the app.
Parameters
Name | Type | Description | Default |
---|---|---|---|
host |
The host of the Shiny app | '127.0.0.1' |
|
port |
The port to open the Shiny app in. Defaults to ‘auto’. If left ‘auto’, the chapy will look for an open port to use |
'auto' |
Examples
import chapy
chapy.app()