bhavyagiri commited on
Commit
db0ede6
1 Parent(s): 0c35eb4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -10
app.py CHANGED
@@ -32,17 +32,9 @@ 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
- 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)
 
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","Going Crazy","Spiderman is my teacher"]
36
  interpretation='default'
37
  enable_queue=True
 
 
 
 
 
 
 
 
38
 
39
+ iface = gr.Interface(fn=generate_memes, inputs=input_textbox, outputs=output_gallery,examples=examples,cache_examples=True,title=title,description=description,interpretation=interpretation,enable_queue=enable_queue)
40
  iface.launch(inline=False)