freemt commited on
Commit
4666df2
·
1 Parent(s): 488534f

Update server=0.0.0.0 for hf spaces

Browse files
Files changed (1) hide show
  1. radiobee/__main__.py +5 -5
radiobee/__main__.py CHANGED
@@ -557,9 +557,9 @@ if __name__ == "__main__":
557
  # "<p style='text-align: center'><a href='https://arxiv.org/abs/2112.11641' target='_blank'>JoJoGAN: One Shot Face Stylization</a>| <a href='https://github.com/mchong6/JoJoGAN' target='_blank'>Github Repo Pytorch</a></p> <center><img src='https://visitor-badge.glitch.me/badge?page_id=akhaliq_jojogan' alt='visitor badge'></center> <p style='text-align: center'>samples from repo: <img src='https://raw.githubusercontent.com/mchong6/JoJoGAN/main/teaser.jpg' alt='animation'/></p>" # noqa
558
 
559
  article = dedent(
560
- """ <p style="text-align: center">
561
  <a href="https://radiobee.readthedocs.io/" target="_blank">readthedocs</a>
562
- or <a href="https://radiobee.readthedocs.io/en/latest/userguide-zh.html#" target="_blank">中文使用说明</a>
563
  </p>
564
  """
565
  ).strip()
@@ -567,7 +567,7 @@ if __name__ == "__main__":
567
  css_image = ".output_image, .input_image {height: 40rem !important; width: 100% !important;}"
568
  # css = ".output_image, .input_image {height: 20rem !important; width: 100% !important;}"
569
  css_input_file = (
570
- ".input_file {height: 9rem !important; width: 100% !important;}"
571
  )
572
  css_output_file = (
573
  ".output_file {height: 4rem !important; width: 100% !important;}"
@@ -607,8 +607,8 @@ if __name__ == "__main__":
607
  share=False,
608
  # share=True,
609
  debug=debug,
610
- # server_name="0.0.0.0",
611
- server_name="127.0.0.1",
612
  server_port=server_port,
613
  # show_tips=True,
614
  enable_queue=True,
 
557
  # "<p style='text-align: center'><a href='https://arxiv.org/abs/2112.11641' target='_blank'>JoJoGAN: One Shot Face Stylization</a>| <a href='https://github.com/mchong6/JoJoGAN' target='_blank'>Github Repo Pytorch</a></p> <center><img src='https://visitor-badge.glitch.me/badge?page_id=akhaliq_jojogan' alt='visitor badge'></center> <p style='text-align: center'>samples from repo: <img src='https://raw.githubusercontent.com/mchong6/JoJoGAN/main/teaser.jpg' alt='animation'/></p>" # noqa
558
 
559
  article = dedent(
560
+ """ <p style="text-align: center">readiobee docs:
561
  <a href="https://radiobee.readthedocs.io/" target="_blank">readthedocs</a>
562
+ or in Chinese but rather short <a href="https://radiobee.readthedocs.io/en/latest/userguide-zh.html#" target="_blank">中文使用说明</a>
563
  </p>
564
  """
565
  ).strip()
 
567
  css_image = ".output_image, .input_image {height: 40rem !important; width: 100% !important;}"
568
  # css = ".output_image, .input_image {height: 20rem !important; width: 100% !important;}"
569
  css_input_file = (
570
+ ".input_file {height: 8rem !important; width: 100% !important;}"
571
  )
572
  css_output_file = (
573
  ".output_file {height: 4rem !important; width: 100% !important;}"
 
607
  share=False,
608
  # share=True,
609
  debug=debug,
610
+ server_name="0.0.0.0",
611
+ # server_name="127.0.0.1",
612
  server_port=server_port,
613
  # show_tips=True,
614
  enable_queue=True,