Skip to content

Commit b6fba54

Browse files
committedMar 8, 2024
updated NanoDB UI
1 parent 1d9471e commit b6fba54

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed
 

‎packages/vectordb/nanodb/server.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,10 @@ def __init__(self, db, host='0.0.0.0', port=7860):
3333
self.app.mount(self.mounts[scan], StaticFiles(directory=scan), name=str(n))
3434

3535
self.create_ui()
36-
36+
3737
def run(self):
3838
# https://www.uvicorn.org/settings/
39+
print(f"-- starting nanodb webserver at {self.server_url}")
3940
uvicorn.run(self.app, host=self.host, port=self.port, reload=False, log_level='warning') # 'info'
4041

4142
def get_random_images(self, n):
@@ -59,10 +60,9 @@ def create_ui(self):
5960
#stats_box {font-family: monospace; font-size: 65%; height: 162px;}
6061
footer {visibility: hidden}
6162
body {overflow: hidden;}
62-
* {scrollbar-color: rebeccapurple green; scrollbar-width: thin;}
6363
"""
6464
# https://stackoverflow.com/questions/66738872/why-doesnt-the-scrollbar-color-property-work-directly-on-the-body
65-
65+
# * {scrollbar-color: darkgray lightgray; scrollbar-width: thin;}
6666
with gr.Blocks(css=css, theme=gr.themes.Monochrome()) as blocks:
6767
gr.HTML('<h1 style="color: #6aa84f; font-size: 250%;">nanodb</h1>')
6868

0 commit comments

Comments
 (0)
Please sign in to comment.