MCPcopy Create free account
hub / github.com/UX-Decoder/Semantic-SAM / change_vocab

Function change_vocab

demo.py:119–123  ·  view source on GitHub ↗
(choice)

Source from the content-addressed store, hash-verified

117# Please only click one point, or our model will take the center of all points as the clicked location. Remember to clear the click after each interaction, or we will take the center of the current click and previous ones as the clicked location.
118'''
119def change_vocab(choice):
120 if choice:
121 return gr.update(visible=True)
122 else:
123 return gr.update(visible=False)
124
125
126with demo:

Callers

nothing calls this directly

Calls 1

updateMethod · 0.45

Tested by

no test coverage detected