johann-foerster commited on
Commit
af2c332
1 Parent(s): a2c50dd

show share button

Browse files
Files changed (1) hide show
  1. webui.py +2 -1
webui.py CHANGED
@@ -127,7 +127,8 @@ with shared.gradio_root:
127
  generated_image_raw = gr.Image(visible=False, type='pil', label="Erstelle Weihnachtskarte...", width=1280,
128
  value="resources/init.png", interactive=False,
129
  show_share_button=False, show_download_button=False )
130
- generated_image_overlayed = gr.Image(label="Weihnachtskarte", type='pil', width=1280, value=pil_image_with_overlay(Image.open("resources/init.png"), toggle_greet.value, greet.value))
 
131
 
132
  toggle_greet.change(fn=toggle_greet_visibility, inputs=[toggle_greet], outputs=[greet, greet_examples_column], queue=False)\
133
  .then(fn=make_overlay, inputs=[generated_image_raw, toggle_greet, greet], outputs=[generated_image_overlayed], queue=False)
 
127
  generated_image_raw = gr.Image(visible=False, type='pil', label="Erstelle Weihnachtskarte...", width=1280,
128
  value="resources/init.png", interactive=False,
129
  show_share_button=False, show_download_button=False )
130
+ generated_image_overlayed = gr.Image(label="Weihnachtskarte", type='pil', width=1280, show_share_button=True,
131
+ value=pil_image_with_overlay(Image.open("resources/init.png"), toggle_greet.value, greet.value))
132
 
133
  toggle_greet.change(fn=toggle_greet_visibility, inputs=[toggle_greet], outputs=[greet, greet_examples_column], queue=False)\
134
  .then(fn=make_overlay, inputs=[generated_image_raw, toggle_greet, greet], outputs=[generated_image_overlayed], queue=False)