radames HF staff commited on
Commit
6846772
β€’
1 Parent(s): d2b42ba

change reademe

Browse files
Files changed (2) hide show
  1. README.md +1 -1
  2. visualizer_drag_gradio.py +10 -9
README.md CHANGED
@@ -1,5 +1,5 @@
1
  ---
2
- title: DragGan - Drag Your GAN
3
  emoji: πŸ‘†πŸ‰
4
  colorFrom: purple
5
  colorTo: pink
 
1
  ---
2
+ title: DragGan - Drag Your GAN
3
  emoji: πŸ‘†πŸ‰
4
  colorFrom: purple
5
  colorTo: pink
visualizer_drag_gradio.py CHANGED
@@ -168,13 +168,13 @@ init_pkl = 'stylegan_human_v2_512'
168
 
169
  with gr.Blocks() as app:
170
  gr.Markdown("""
171
- # DragGAN - Drag Your GAN: Interactive Point-based Manipulation on the Generative Image Manifold
172
- ## Unofficial Gradio Demo
173
- <small>
174
- * Official Repo: [XingangPan][https://github.com/XingangPan/DragGAN]
175
- * Gradio Demo by: [LeoXing1996](https://github.com/LeoXing1996) with [OpenMMLab MMagic](https://github.com/open-mmlab/mmagic)
176
- </small>
177
- """)
178
 
179
  # renderer = Renderer()
180
  global_state = gr.State({
@@ -863,6 +863,7 @@ with gr.Blocks() as app:
863
  outputs=[global_state, form_image],
864
  )
865
 
 
866
  gr.close_all()
867
- app.queue(concurrency_count=5, max_size=20, api_open=False)
868
- app.launch(show_api=False)
 
168
 
169
  with gr.Blocks() as app:
170
  gr.Markdown("""
171
+ # DragGAN - Drag Your GAN
172
+ ## Interactive Point-based Manipulation on the Generative Image Manifold
173
+ ### Unofficial Gradio Demo
174
+
175
+ * Official Repo: [XingangPan](https://github.com/XingangPan/DragGAN)
176
+ * Gradio Demo by: [LeoXing1996](https://github.com/LeoXing1996) with [OpenMMLab MMagic](https://github.com/open-mmlab/mmagic)
177
+ """)
178
 
179
  # renderer = Renderer()
180
  global_state = gr.State({
 
863
  outputs=[global_state, form_image],
864
  )
865
 
866
+ print("SHAReD: Start app", parser.parse_args())
867
  gr.close_all()
868
+ app.queue(concurrency_count=2, max_size=20, api_open=False)
869
+ app.launch(share=args.share, show_api=False)