Skip to content

Commit ed304d1

Browse files
Not reusing initialize_models from http_api
1 parent f918798 commit ed304d1

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

inference/core/interfaces/http/http_api.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -160,8 +160,6 @@
160160
PRELOAD_MODELS,
161161
PROFILE,
162162
ROBOFLOW_SERVICE_SECRET,
163-
WEBRTC_MODAL_TOKEN_ID,
164-
WEBRTC_MODAL_TOKEN_SECRET,
165163
WEBRTC_WORKER_ENABLED,
166164
WORKFLOWS_MAX_CONCURRENT_STEPS,
167165
WORKFLOWS_PROFILER_BUFFER_SIZE,
@@ -1605,7 +1603,7 @@ async def consume(
16051603
)
16061604

16071605
# Enable preloading models at startup
1608-
if (WEBRTC_MODAL_TOKEN_ID and WEBRTC_MODAL_TOKEN_SECRET) or (
1606+
if (
16091607
(PRELOAD_MODELS or DEDICATED_DEPLOYMENT_WORKSPACE_URL)
16101608
and API_KEY
16111609
and not (LAMBDA or GCP_SERVERLESS)

0 commit comments

Comments
 (0)