Spaces:
Running
Running
File size: 398 Bytes
d9c675a 0613dd1 d9c675a |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
import gradio as gr
from gradio_bbox_annotator import BBoxAnnotator
example = BBoxAnnotator().example_value()
demo = gr.Interface(
lambda x: x,
BBoxAnnotator(value=example, show_label=False), # input is interactive
BBoxAnnotator(show_label=False), # output is static
examples=[[example]], # examples are in the gallery format
)
if __name__ == "__main__":
demo.launch()
|