Spaces:
Runtime error
Runtime error
Ahsen Khaliq
commited on
Commit
·
bd30780
1
Parent(s):
c9ec901
Update app.py
Browse files
app.py
CHANGED
@@ -6,6 +6,7 @@ import math
|
|
6 |
import numpy as np
|
7 |
import torch
|
8 |
import datetime
|
|
|
9 |
|
10 |
|
11 |
# Load the open CLIP model
|
@@ -89,5 +90,18 @@ def inference(video, text):
|
|
89 |
|
90 |
return search_video(text)
|
91 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
92 |
|
93 |
|
|
|
6 |
import numpy as np
|
7 |
import torch
|
8 |
import datetime
|
9 |
+
import gradio as gr
|
10 |
|
11 |
|
12 |
# Load the open CLIP model
|
|
|
90 |
|
91 |
return search_video(text)
|
92 |
|
93 |
+
title = "Video Search"
|
94 |
+
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."
|
95 |
+
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>"
|
96 |
+
|
97 |
+
gr.Interface(
|
98 |
+
inference,
|
99 |
+
["video","text"],
|
100 |
+
[gr.outputs.Image(type="pil", label="Output"),"text"],
|
101 |
+
title=title,
|
102 |
+
description=description,
|
103 |
+
article=article,
|
104 |
+
enable_queue=True
|
105 |
+
).launch(debug=True)
|
106 |
|
107 |
|