Skip to content

Commit f8e4e35

Browse files
author
xhlulu
committed
Add gunicorn server
Former-commit-id: 5b4cf41
1 parent 6a69f34 commit f8e4e35

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

apps/dash-dino/app.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ def apply_threshold(attentions, w_featmap, h_featmap, threshold, patch_size=16):
8181
# Initialize dash app and dash-labs template
8282
title = "Zero-shot segmentation with DINO and Dash Labs"
8383
app = dash.Dash(__name__, title=title, plugins=[dl.plugins.FlexibleCallbacks()])
84+
server = app.server
8485
tpl = dl.templates.DbcSidebar(title=title, theme=dbc.themes.DARKLY)
8586
cache = Cache(
8687
app.server, config={"CACHE_TYPE": "filesystem", "CACHE_DIR": "flask_cache"},

0 commit comments

Comments
 (0)