feng2022 commited on
Commit
c405107
1 Parent(s): 6f40a80

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -18,6 +18,7 @@ from transformers import pipeline
18
 
19
  sys.path.append('.')
20
  sys.path.append('./Time_TravelRephotography')
 
21
  from argparse import Namespace
22
  from projector import (
23
  ProjectorArguments,
@@ -81,13 +82,14 @@ def main():
81
  # encoder_name=spectral_sensitivity,
82
  # gaussian=gaussian_radius,
83
  log_visual_freq=1000,
 
84
  ))
85
  #device = torch.device(args.device)
86
  #load_model("stylegan2-ffhq-config-f","feng2022/Time-TravelRephotography_stylegan2-ffhq-config-f",device)
87
 
88
  iface = gr.Interface(
89
  fn=predict,
90
- inputs='text',
91
  outputs='text',
92
  examples=['result']
93
  )
 
18
 
19
  sys.path.append('.')
20
  sys.path.append('./Time_TravelRephotography')
21
+ from utils import torch_helpers as th
22
  from argparse import Namespace
23
  from projector import (
24
  ProjectorArguments,
 
82
  # encoder_name=spectral_sensitivity,
83
  # gaussian=gaussian_radius,
84
  log_visual_freq=1000,
85
+ inputs='text',
86
  ))
87
  #device = torch.device(args.device)
88
  #load_model("stylegan2-ffhq-config-f","feng2022/Time-TravelRephotography_stylegan2-ffhq-config-f",device)
89
 
90
  iface = gr.Interface(
91
  fn=predict,
92
+ ,
93
  outputs='text',
94
  examples=['result']
95
  )