Spaces:
Running
on
T4
Running
on
T4
Ahsen Khaliq
commited on
Commit
•
46bd6e1
1
Parent(s):
8cf79c4
Update app.py
Browse files
app.py
CHANGED
@@ -2,7 +2,13 @@ from PIL import Image
|
|
2 |
import torch
|
3 |
import gradio as gr
|
4 |
|
5 |
-
model = torch.hub.load(
|
|
|
|
|
|
|
|
|
|
|
|
|
6 |
|
7 |
face2paint = torch.hub.load(
|
8 |
'bryandlee/animegan2-pytorch:main', 'face2paint',
|
|
|
2 |
import torch
|
3 |
import gradio as gr
|
4 |
|
5 |
+
model = torch.hub.load(
|
6 |
+
"bryandlee/animegan2-pytorch:main",
|
7 |
+
"generator",
|
8 |
+
pretrained=True, # or give URL to a pretrained model
|
9 |
+
device="cuda", # or "cpu" if you don't have a GPU
|
10 |
+
progress=False, # show progress
|
11 |
+
)
|
12 |
|
13 |
face2paint = torch.hub.load(
|
14 |
'bryandlee/animegan2-pytorch:main', 'face2paint',
|