Skip to content

Commit f9cc3ab

Browse files
committed
set logo and colors
1 parent d219be2 commit f9cc3ab

2 files changed

Lines changed: 16 additions & 2 deletions

File tree

vetiver/default.min.css

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vetiver/server.py

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,20 @@ async def rapidoc():
7373
></script>
7474
</head>
7575
<body>
76-
<rapi-doc spec-url="{app.openapi_url}"></rapi-doc>
76+
<rapi-doc spec-url="{app.openapi_url}"
77+
theme="light"
78+
header-color="#0F4B71"
79+
primary-color = "#407483"
80+
schema-style="tree"
81+
render-style="read"
82+
schema-style="tree"
83+
>
84+
<img
85+
slot="logo"
86+
height="75"
87+
width="75"
88+
src="https://raw.githubusercontent.com/rstudio/hex-stickers/master/SVG/vetiver.svg"
89+
</rapi-doc>
7790
</body>
7891
</html>
7992
"""
@@ -188,7 +201,7 @@ def _batch_data(pred_data):
188201

189202

190203
def vetiver_endpoint(url="http://127.0.0.1:8000/predict"):
191-
"""Wrap url
204+
"""Wrap url where VetiverModel will be deployed
192205
193206
Parameters
194207
----------

0 commit comments

Comments
 (0)