File size: 777 Bytes
40ce629
 
 
 
 
 
f57ed6a
40ce629
f57ed6a
 
40ce629
f57ed6a
98a2239
40ce629
 
 
f57ed6a
40ce629
 
b703853
 
40ce629
 
 
 
 
 
 
 
 
 
 
 
 
b703853
40ce629
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#!/usr/bin/env python

from __future__ import annotations

import argparse
import functools
import os
import pickle
import sys

import gradio as gr
import numpy as np
import torch
import torch_utils
import torch.nn as nn
from huggingface_hub import hf_hub_download

sys.path.insert(0, 'StyleGAN-Human')

TITLE = 'Time-TravelRephotography'
DESCRIPTION = '''This is an unofficial demo for https://github.com/Time-Travel-Rephotography.
'''
ARTICLE = '<center><img src="https://visitor-badge.glitch.me/badge?page_id=hysts.stylegan-human" alt="visitor badge"/></center>'

TOKEN = "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"


def main():

    gr.Interface(
        title=TITLE,
        description=DESCRIPTION,
        article=ARTICLE,
    )
    
if __name__ == '__main__':
    main()