Ahsen Khaliq commited on
Commit
8cf79c4
1 Parent(s): c250292

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -2,6 +2,8 @@ from PIL import Image
2
  import torch
3
  import gradio as gr
4
 
 
 
5
  face2paint = torch.hub.load(
6
  'bryandlee/animegan2-pytorch:main', 'face2paint',
7
  size=512, device="cuda"
 
2
  import torch
3
  import gradio as gr
4
 
5
+ model = torch.hub.load('bryandlee/animegan2-pytorch', 'generator').eval()
6
+
7
  face2paint = torch.hub.load(
8
  'bryandlee/animegan2-pytorch:main', 'face2paint',
9
  size=512, device="cuda"