Spaces:
Sleeping
Sleeping
bhavyagiri
commited on
Commit
·
0c35eb4
1
Parent(s):
3274fc3
Update app.py
Browse files
app.py
CHANGED
@@ -32,9 +32,17 @@ output_gallery = gr.Gallery(
|
|
32 |
).style(columns=[3], rows=[2], object_fit="contain", height="auto")
|
33 |
title = "Semantic Search for Memes"
|
34 |
description = "Search Memes from small dataset of 6k memes. Check out [GitHub Repo](https://github.com/bhavya-giri/retrieving-memes)"
|
35 |
-
examples = ['Get Shreked']
|
36 |
interpretation='default'
|
37 |
enable_queue=True
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
38 |
|
39 |
iface = gr.Interface(fn=generate_memes, inputs=input_textbox, outputs=output_gallery,examples=examples,title=title,description=description,interpretation=interpretation,enable_queue=enable_queue)
|
40 |
iface.launch(inline=False)
|
|
|
32 |
).style(columns=[3], rows=[2], object_fit="contain", height="auto")
|
33 |
title = "Semantic Search for Memes"
|
34 |
description = "Search Memes from small dataset of 6k memes. Check out [GitHub Repo](https://github.com/bhavya-giri/retrieving-memes)"
|
35 |
+
# examples = ['Get Shreked']
|
36 |
interpretation='default'
|
37 |
enable_queue=True
|
38 |
+
examples = gr.Dataset(
|
39 |
+
components=[input_textbox],
|
40 |
+
samples=[
|
41 |
+
["Get Shreked"],
|
42 |
+
["Going Crazy"],
|
43 |
+
["Spiderman is my teacher"],
|
44 |
+
]
|
45 |
+
)
|
46 |
|
47 |
iface = gr.Interface(fn=generate_memes, inputs=input_textbox, outputs=output_gallery,examples=examples,title=title,description=description,interpretation=interpretation,enable_queue=enable_queue)
|
48 |
iface.launch(inline=False)
|