Spaces:
Runtime error
Runtime error
Commit
·
179a347
1
Parent(s):
e2eb83a
Update app.py
Browse files
app.py
CHANGED
@@ -6,28 +6,15 @@ def image_mod(image):
|
|
6 |
return image.rotate(45)
|
7 |
|
8 |
|
9 |
-
# demo = gr.Interface(
|
10 |
-
# image_mod,
|
11 |
-
# inputs='sketchpad',
|
12 |
-
# gr.Image(type="pil"),
|
13 |
-
# "image",
|
14 |
-
# flagging_options=["blurry", "incorrect", "other"],
|
15 |
-
# examples=[
|
16 |
-
# os.path.join(os.path.dirname(__file__), "images/pic1.jpg"),
|
17 |
-
# os.path.join(os.path.dirname(__file__), "images/pic2.jpg"),
|
18 |
-
# os.path.join(os.path.dirname(__file__), "images/pic3.png"),
|
19 |
-
# os.path.join(os.path.dirname(__file__), "images/pic4.jpg"),
|
20 |
-
# ],
|
21 |
-
# )
|
22 |
-
# demo.launch(share=False)
|
23 |
-
|
24 |
title = "Draw to Search"
|
25 |
description = "Using the power of CLIP and a simple small CNN, find images from movies based on what you draw!"
|
26 |
|
27 |
-
|
28 |
fn=image_mod,
|
29 |
inputs='sketchpad',
|
30 |
outputs='image',
|
31 |
-
|
32 |
-
|
33 |
-
|
|
|
|
|
|
6 |
return image.rotate(45)
|
7 |
|
8 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
9 |
title = "Draw to Search"
|
10 |
description = "Using the power of CLIP and a simple small CNN, find images from movies based on what you draw!"
|
11 |
|
12 |
+
demo = gr.Interface(
|
13 |
fn=image_mod,
|
14 |
inputs='sketchpad',
|
15 |
outputs='image',
|
16 |
+
title=title,
|
17 |
+
description=description,
|
18 |
+
live=True)
|
19 |
+
|
20 |
+
demo.launch(share=False)
|