pixano.app.serve
App(library_dir, aws_endpoint=None, aws_region=None, aws_access_key=None, aws_secret_key=None, local_model_dir=None, host='127.0.0.1', port=8000)
Pixano app
Attributes:
Name | Type | Description |
---|---|---|
app |
FastAPI
|
FastAPI App |
config |
Config
|
App config |
server |
Server
|
App server |
Parameters:
Name | Type | Description | Default |
---|---|---|---|
library_dir
|
str
|
Local or S3 path to dataset library |
required |
aws_endpoint
|
str
|
S3 endpoint URL, use 'AWS' if not provided. Used if library_dir is an S3 path. Defaults to None. |
None
|
aws_region
|
str
|
S3 region name, not always required for private storages. Used if library_dir is an S3 path. Defaults to None. |
None
|
aws_access_key
|
str
|
S3 AWS access key. Used if library_dir is an S3 path. Defaults to None. |
None
|
aws_secret_key
|
str
|
S3 AWS secret key. Used if library_dir is an S3 path. Defaults to None. |
None
|
local_model_dir
|
str
|
Local path to models. Used if library_dir is an S3 path. Defaults to None. |
None
|
host
|
str
|
App host. Defaults to "127.0.0.1". |
'127.0.0.1'
|
port
|
int
|
App port. Defaults to 8000. |
8000
|
Source code in pixano/app/serve.py
display(height=1000)
Display Pixano app
Parameters:
Name | Type | Description | Default |
---|---|---|---|
height
|
int
|
Frame height. Defaults to 1000. |
1000
|
Source code in pixano/app/serve.py
get_env()
Get the app's current running environment
Returns:
Type | Description |
---|---|
str
|
Running environment |
Source code in pixano/app/serve.py
main(library_dir, aws_endpoint, aws_region, aws_access_key, aws_secret_key, local_model_dir, host, port)
Launch Pixano App in LIBRARY_DIR
LIBRARY_DIR is the local or S3 path to your dataset library