feng2022 commited on
Commit
7f1e7af
1 Parent(s): dd54153

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -3
app.py CHANGED
@@ -13,7 +13,6 @@ import gradio as gr
13
  import numpy as np
14
  import torch
15
  import torch.nn as nn
16
- from huggingface_hub import hf_hub_download
17
  from transformers import pipeline
18
 
19
  sys.path.append('.')
@@ -26,7 +25,6 @@ from projector import (
26
  create_generator,
27
  make_image,
28
  )
29
- sys.path.insert(0, 'StyleGAN-Human')
30
 
31
  input_path = ''
32
  spectral_sensitivity = 'b'
@@ -35,7 +33,6 @@ DESCRIPTION = '''This is an unofficial demo for https://github.com/Time-Travel-R
35
  '''
36
  ARTICLE = '<center><img src="https://visitor-badge.glitch.me/badge?page_id=Time-TravelRephotography" alt="visitor badge"/></center>'
37
 
38
- TOKEN = "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"
39
 
40
  def image_create(seed: int, truncation_psi: float):
41
  args = ProjectorArguments().parse(
 
13
  import numpy as np
14
  import torch
15
  import torch.nn as nn
 
16
  from transformers import pipeline
17
 
18
  sys.path.append('.')
 
25
  create_generator,
26
  make_image,
27
  )
 
28
 
29
  input_path = ''
30
  spectral_sensitivity = 'b'
 
33
  '''
34
  ARTICLE = '<center><img src="https://visitor-badge.glitch.me/badge?page_id=Time-TravelRephotography" alt="visitor badge"/></center>'
35
 
 
36
 
37
  def image_create(seed: int, truncation_psi: float):
38
  args = ProjectorArguments().parse(