hysts HF staff commited on
Commit
f76a162
·
1 Parent(s): f3c2c18

Update description

Browse files
Files changed (1) hide show
  1. app.py +5 -2
app.py CHANGED
@@ -16,12 +16,13 @@ from huggingface_hub import hf_hub_download
16
 
17
  sys.path.insert(0, 'stylegan_xl')
18
 
19
- ORIGINAL_REPO_URL = 'https://github.com/autonomousvision/stylegan_xl'
20
  TITLE = 'autonomousvision/stylegan_xl'
21
- DESCRIPTION = f'''This is a demo for {ORIGINAL_REPO_URL}.
22
 
23
  For class-conditional models, you can specify the class index.
24
  Index-to-label dictionaries for ImageNet and CIFAR-10 can be found [here](https://raw.githubusercontent.com/autonomousvision/stylegan_xl/main/misc/imagenet_idx2labels.txt) and [here](https://www.cs.toronto.edu/~kriz/cifar.html), respectively.
 
 
25
  '''
26
  SAMPLE_IMAGE_DIR = 'https://huggingface.co/spaces/hysts/StyleGAN-XL/resolve/main/samples'
27
  ARTICLE = f'''## Generated images
@@ -44,6 +45,8 @@ ARTICLE = f'''## Generated images
44
  - size: 256x256
45
  - seed: 0-99
46
  ![Pokemon samples]({SAMPLE_IMAGE_DIR}/pokemon.jpg)
 
 
47
  '''
48
 
49
  TOKEN = os.environ['TOKEN']
 
16
 
17
  sys.path.insert(0, 'stylegan_xl')
18
 
 
19
  TITLE = 'autonomousvision/stylegan_xl'
20
+ DESCRIPTION = '''This is an unofficial demo for https://github.com/autonomousvision/stylegan_xl.
21
 
22
  For class-conditional models, you can specify the class index.
23
  Index-to-label dictionaries for ImageNet and CIFAR-10 can be found [here](https://raw.githubusercontent.com/autonomousvision/stylegan_xl/main/misc/imagenet_idx2labels.txt) and [here](https://www.cs.toronto.edu/~kriz/cifar.html), respectively.
24
+
25
+ Expected execution time on Hugging Face Spaces: 16s
26
  '''
27
  SAMPLE_IMAGE_DIR = 'https://huggingface.co/spaces/hysts/StyleGAN-XL/resolve/main/samples'
28
  ARTICLE = f'''## Generated images
 
45
  - size: 256x256
46
  - seed: 0-99
47
  ![Pokemon samples]({SAMPLE_IMAGE_DIR}/pokemon.jpg)
48
+
49
+ <center><img src="https://visitor-badge.glitch.me/badge?page_id=hysts.stylegan-xl" alt="visitor badge"/></center>
50
  '''
51
 
52
  TOKEN = os.environ['TOKEN']