Spaces:
Runtime error
Runtime error
Ahsen Khaliq
commited on
Commit
·
1b697ad
1
Parent(s):
7734d5b
Create app.py
Browse files
app.py
ADDED
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import os
|
2 |
+
import gradio as gr
|
3 |
+
|
4 |
+
os.system("gdown https://drive.google.com/uc?id=1RE5vaKHYt_TL0cXNn6FmjO7aZx3sVfVA")
|
5 |
+
|
6 |
+
def inference(video):
|
7 |
+
os.system("python3 deploy/ONNXRuntime/onnx_inference.py -i "+video)
|
8 |
+
return "demo_output/"+video
|
9 |
+
|
10 |
+
|
11 |
+
title = "Anime2Sketch"
|
12 |
+
description = "demo for Anime2Sketch. To use it, simply upload your image, or click one of the examples to load them. Read more at the links below."
|
13 |
+
article = "<p style='text-align: center'><a href='https://arxiv.org/abs/2104.05703'>Adversarial Open Domain Adaption for Sketch-to-Photo Synthesis</a> | <a href='https://github.com/Mukosame/Anime2Sketch'>Github Repo</a></p>"
|
14 |
+
|
15 |
+
gr.Interface(
|
16 |
+
inference,
|
17 |
+
"video",
|
18 |
+
"playable_video",
|
19 |
+
title=title,
|
20 |
+
description=description,
|
21 |
+
article=article
|
22 |
+
).launch(debug=True)
|