Custom Frontend Information¶
Pinferencia frontend supports customization on:
- title of the web page
- using model
display_name
as title on the template - short description
- and detail description
First Let's Create a Simple Model Service¶
app.py | |
---|---|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
|
- This will change the default templage title displayed on the right content area.
Now start the service:
$ pinfer app:service
Pinferencia: Frontend component streamlit is starting...
Pinferencia: Backend component uvicorn is starting...
you will get:
Custom the Frontend¶
app.py | |
---|---|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
|
- This will change the title displayed on the top of the left side panel.
- This will change the description below the title of the left side panel.
- This will change the about information of the page.
Now start the service:
$ pinfer app:service --frontend-script=frontend.py
Pinferencia: Frontend component streamlit is starting...
Pinferencia: Backend component uvicorn is starting...
you will get: