Abhinowww commited on
Commit
e16015d
·
1 Parent(s): 1fc87db

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -166,12 +166,12 @@ def inference(img, model):
166
  aligned_face = align_face('out.jpg')
167
 
168
  my_w = projection(aligned_face, "test.pt", device).unsqueeze(0)
169
- if model == 'JoJo':
170
  with torch.no_grad():
171
- my_sample = generatorjojo(my_w, input_is_latent=True)
172
- elif model == 'Disney':
173
  with torch.no_grad():
174
- my_sample = generatordisney(my_w, input_is_latent=True)
175
  # elif model == 'Jinx':
176
  # with torch.no_grad():
177
  # my_sample = generatorjinx(my_w, input_is_latent=True)
 
166
  aligned_face = align_face('out.jpg')
167
 
168
  my_w = projection(aligned_face, "test.pt", device).unsqueeze(0)
169
+ if model == 'Joker':
170
  with torch.no_grad():
171
+ my_sample = generatorjoker(my_w, input_is_latent=True)
172
+ elif model == 'Voldemort':
173
  with torch.no_grad():
174
+ my_sample = generatorvoldemort(my_w, input_is_latent=True)
175
  # elif model == 'Jinx':
176
  # with torch.no_grad():
177
  # my_sample = generatorjinx(my_w, input_is_latent=True)