bkoz commited on
Commit
99aa55c
·
1 Parent(s): 5836e13

initial code

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -59,13 +59,15 @@ def respond(query):
59
 
60
  return response.objects[0].properties
61
 
 
62
  demo = gr.Interface(fn=respond,
63
  inputs=gr.Textbox(
64
  label="Search the Jeopardy Vector Database powered by Weaviate",
65
  info="Submit a Query:",
66
  lines=1,
67
  value="Guitar",
68
- ),
 
69
  outputs="textbox"
70
  )
71
 
 
59
 
60
  return response.objects[0].properties
61
 
62
+ examples = gr.Examples(inputs=["Wine", "Movies", "Sports"])
63
  demo = gr.Interface(fn=respond,
64
  inputs=gr.Textbox(
65
  label="Search the Jeopardy Vector Database powered by Weaviate",
66
  info="Submit a Query:",
67
  lines=1,
68
  value="Guitar",
69
+ ),
70
+ examples=examples,
71
  outputs="textbox"
72
  )
73