Skip to content

Commit

Permalink
Remove gr output but doesn't help
Browse files Browse the repository at this point in the history
  • Loading branch information
wchen-github committed Jun 12, 2023
1 parent 39cb59a commit ddccbac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion demo/image_composition/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
# with gr.Row():
segmented_img = gr.Image(label="Segmented", tool="sketch")
print("segment image config", segmented_img.get_config())
composed_img = gr.outputs.Image(label="Composed", type='numpy')
composed_img = gr.Image(label="Composed", type='numpy')
print("composed image config", composed_img.get_config()) #strangely, these two need to be in the same Row, perhaps due to shared np array
with gr.Row():
segment_btn = gr.Button("Segment image")
Expand Down

0 comments on commit ddccbac

Please sign in to comment.