radames commited on
Commit
0e59f7d
β€’
1 Parent(s): bb0f5a9
Files changed (1) hide show
  1. visualizer_drag_gradio_inversion.py +10 -10
visualizer_drag_gradio_inversion.py CHANGED
@@ -212,7 +212,7 @@ with gr.Blocks(css=css) as app:
212
 
213
  **Due to high demand, only one model can be run at a time, or you can duplicate the space and run your own copy.**
214
 
215
- <a href="https://huggingface.co/spaces/ DragGan/DragGan-Inversion?duplicate=true" style="display: inline-block;margin-top: .5em;margin-right: .25em;" target="_blank">
216
  <img style="margin-bottom: 0em;display: inline;margin-top: -.25em;" src="https://bit.ly/3gLdBN6" alt="Duplicate Space"></a> for no queue on your own hardware.</p>
217
 
218
  * Official Repo: [XingangPan](https://github.com/XingangPan/DragGAN)
@@ -477,7 +477,7 @@ with gr.Blocks(css=css) as app:
477
  inputs=[global_state],
478
  outputs=[global_state, form_image],
479
  queue=False,
480
- show_progress=False,
481
  )
482
 
483
  # Update parameters
@@ -542,7 +542,7 @@ with gr.Blocks(css=css) as app:
542
  inputs=[form_lr_number, global_state],
543
  outputs=[global_state],
544
  queue=False,
545
- show_progress=False,
546
  )
547
 
548
  def on_click_start(global_state, image):
@@ -778,7 +778,7 @@ with gr.Blocks(css=css) as app:
778
  inputs=[global_state],
779
  outputs=[global_state, form_stop_btn],
780
  queue=False,
781
- show_progress=False,
782
  )
783
 
784
  form_draw_interval_number.change(
@@ -790,7 +790,7 @@ with gr.Blocks(css=css) as app:
790
  inputs=[form_draw_interval_number, global_state],
791
  outputs=[global_state],
792
  queue=False,
793
- show_progress=False,
794
  )
795
 
796
  def on_click_remove_point(global_state):
@@ -874,7 +874,7 @@ with gr.Blocks(css=css) as app:
874
  form_image,
875
  ],
876
  queue=False,
877
- show_progress=False,
878
  )
879
 
880
  def on_click_add_point(global_state, image: dict):
@@ -906,7 +906,7 @@ with gr.Blocks(css=css) as app:
906
  inputs=[global_state, form_image],
907
  outputs=[global_state, form_image],
908
  queue=False,
909
- show_progress=False,
910
  )
911
 
912
  def on_click_image(global_state, evt: gr.SelectData):
@@ -946,7 +946,7 @@ with gr.Blocks(css=css) as app:
946
  inputs=[global_state],
947
  outputs=[global_state, form_image],
948
  queue=False,
949
- show_progress=False,
950
  )
951
 
952
  def on_click_clear_points(global_state):
@@ -971,7 +971,7 @@ with gr.Blocks(css=css) as app:
971
  inputs=[global_state],
972
  outputs=[global_state, form_image],
973
  queue=False,
974
- show_progress=False,
975
  )
976
 
977
  def on_click_show_mask(global_state, show_mask):
@@ -993,7 +993,7 @@ with gr.Blocks(css=css) as app:
993
  inputs=[global_state, show_mask],
994
  outputs=[global_state, form_image],
995
  queue=False,
996
- show_progress=False,
997
  )
998
 
999
  # print("SHAReD: Start app", parser.parse_args())
 
212
 
213
  **Due to high demand, only one model can be run at a time, or you can duplicate the space and run your own copy.**
214
 
215
+ <a href="https://huggingface.co/spaces/DragGan/DragGan-Inversion?duplicate=true" style="display: inline-block;margin-top: .5em;margin-right: .25em;" target="_blank">
216
  <img style="margin-bottom: 0em;display: inline;margin-top: -.25em;" src="https://bit.ly/3gLdBN6" alt="Duplicate Space"></a> for no queue on your own hardware.</p>
217
 
218
  * Official Repo: [XingangPan](https://github.com/XingangPan/DragGAN)
 
477
  inputs=[global_state],
478
  outputs=[global_state, form_image],
479
  queue=False,
480
+ show_progress=True,
481
  )
482
 
483
  # Update parameters
 
542
  inputs=[form_lr_number, global_state],
543
  outputs=[global_state],
544
  queue=False,
545
+ show_progress=True,
546
  )
547
 
548
  def on_click_start(global_state, image):
 
778
  inputs=[global_state],
779
  outputs=[global_state, form_stop_btn],
780
  queue=False,
781
+ show_progress=True,
782
  )
783
 
784
  form_draw_interval_number.change(
 
790
  inputs=[form_draw_interval_number, global_state],
791
  outputs=[global_state],
792
  queue=False,
793
+ show_progress=True,
794
  )
795
 
796
  def on_click_remove_point(global_state):
 
874
  form_image,
875
  ],
876
  queue=False,
877
+ show_progress=True,
878
  )
879
 
880
  def on_click_add_point(global_state, image: dict):
 
906
  inputs=[global_state, form_image],
907
  outputs=[global_state, form_image],
908
  queue=False,
909
+ show_progress=True,
910
  )
911
 
912
  def on_click_image(global_state, evt: gr.SelectData):
 
946
  inputs=[global_state],
947
  outputs=[global_state, form_image],
948
  queue=False,
949
+ show_progress=True,
950
  )
951
 
952
  def on_click_clear_points(global_state):
 
971
  inputs=[global_state],
972
  outputs=[global_state, form_image],
973
  queue=False,
974
+ show_progress=True,
975
  )
976
 
977
  def on_click_show_mask(global_state, show_mask):
 
993
  inputs=[global_state, show_mask],
994
  outputs=[global_state, form_image],
995
  queue=False,
996
+ show_progress=True,
997
  )
998
 
999
  # print("SHAReD: Start app", parser.parse_args())