MCPcopy Create free account
hub / github.com/WeChatCV/WeVisionOne / initialize_object

Function initialize_object

Inference/gradio_demo.py:25–28  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

23 return None
24
25 def initialize_object():
26 if not hasattr(thread_local, 'object'):
27 thread_local.object = TextInfer(args, 'cuda:0')
28 return thread_local.object
29
30 obj = initialize_object()
31

Callers 2

Py_TextFunction · 0.85
on_feats_btnFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected