Update description
Browse files
app.py
CHANGED
|
@@ -16,9 +16,11 @@ import torch
|
|
| 16 |
import torch.nn as nn
|
| 17 |
from huggingface_hub import hf_hub_download
|
| 18 |
|
| 19 |
-
ORIGINAL_REPO_URL = 'https://github.com/NVlabs/stylegan3'
|
| 20 |
TITLE = 'StyleGAN2'
|
| 21 |
-
DESCRIPTION =
|
|
|
|
|
|
|
|
|
|
| 22 |
SAMPLE_IMAGE_DIR = 'https://huggingface.co/spaces/hysts/StyleGAN2/resolve/main/samples'
|
| 23 |
ARTICLE = f'''## Generated images
|
| 24 |
- truncation: 0.7
|
|
@@ -71,6 +73,8 @@ ARTICLE = f'''## Generated images
|
|
| 71 |
- size: 1024x1024
|
| 72 |
- seed: 0-99
|
| 73 |

|
|
|
|
|
|
|
| 74 |
'''
|
| 75 |
|
| 76 |
TOKEN = os.environ['TOKEN']
|
|
|
|
| 16 |
import torch.nn as nn
|
| 17 |
from huggingface_hub import hf_hub_download
|
| 18 |
|
|
|
|
| 19 |
TITLE = 'StyleGAN2'
|
| 20 |
+
DESCRIPTION = '''This is an unofficial demo for https://github.com/NVlabs/stylegan3.
|
| 21 |
+
|
| 22 |
+
Expected execution time on Hugging Face Spaces: 4s
|
| 23 |
+
'''
|
| 24 |
SAMPLE_IMAGE_DIR = 'https://huggingface.co/spaces/hysts/StyleGAN2/resolve/main/samples'
|
| 25 |
ARTICLE = f'''## Generated images
|
| 26 |
- truncation: 0.7
|
|
|
|
| 73 |
- size: 1024x1024
|
| 74 |
- seed: 0-99
|
| 75 |

|
| 76 |
+
|
| 77 |
+
<center><img src="https://visitor-badge.glitch.me/badge?page_id=hysts.stylegan2" alt="visitor badge"/></center>
|
| 78 |
'''
|
| 79 |
|
| 80 |
TOKEN = os.environ['TOKEN']
|