Spaces:
Running
on
T4
Running
on
T4
Ahsen Khaliq
commited on
Commit
•
f8f84a0
1
Parent(s):
2870617
Update app.py
Browse files
app.py
CHANGED
@@ -7,6 +7,7 @@ os.system("pip -qq install facenet_pytorch")
|
|
7 |
from facenet_pytorch import MTCNN
|
8 |
from torchvision import transforms
|
9 |
import torch, PIL
|
|
|
10 |
|
11 |
from tqdm.notebook import tqdm
|
12 |
import gradio as gr
|
@@ -137,8 +138,8 @@ def process(im):
|
|
137 |
return res
|
138 |
|
139 |
title = "ArcaneGAN"
|
140 |
-
description = "Gradio demo for
|
141 |
-
article = "<p style='text-align: center'><a href='https://
|
142 |
|
143 |
gr.Interface(
|
144 |
process,
|
@@ -147,4 +148,6 @@ gr.Interface(
|
|
147 |
title=title,
|
148 |
description=description,
|
149 |
article=article,
|
|
|
|
|
150 |
).launch(debug=True)
|
|
|
7 |
from facenet_pytorch import MTCNN
|
8 |
from torchvision import transforms
|
9 |
import torch, PIL
|
10 |
+
torch.hub.download_url_to_file('https://www.giantfreakinrobot.com/wp-content/uploads/2021/02/adult-groot.jpg', 'groot.jpg')
|
11 |
|
12 |
from tqdm.notebook import tqdm
|
13 |
import gradio as gr
|
|
|
138 |
return res
|
139 |
|
140 |
title = "ArcaneGAN"
|
141 |
+
description = "Gradio demo for ArcaneGAN, portrait to Arcane style. To use it, simply upload your image, or click one of the examples to load them. Read more at the links below."
|
142 |
+
article = "<p style='text-align: center'><a href='https://github.com/Sxela/ArcaneGAN'>Github Repo</a></p>"
|
143 |
|
144 |
gr.Interface(
|
145 |
process,
|
|
|
148 |
title=title,
|
149 |
description=description,
|
150 |
article=article,
|
151 |
+
examples=[['groot.jpg']],
|
152 |
+
enable_queue=True
|
153 |
).launch(debug=True)
|