Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/OpenGVLab/DragGAN
/ on_select_mask_tab
Function
on_select_mask_tab
gradio_app.py:199–201 ·
view source on GitHub ↗
(state)
Source
from the content-addressed store, hash-verified
197
198
199
def
on_select_mask_tab(state):
200
img = to_image(state[
'sample'
])
201
return
img
202
203
204
def
main():
Callers
nothing calls this directly
Calls
1
to_image
Function · 0.70
Tested by
no test coverage detected