bkoz commited on
Commit
4ec8a60
·
1 Parent(s): 85ea1ae

initial code

Browse files
Files changed (1) hide show
  1. app.py +5 -11
app.py CHANGED
@@ -63,24 +63,18 @@ with gr.Blocks(title="Search the Jeopardy Vector Database powered by Weaviate")
63
  gr.Markdown("""# Search the Jeopardy Vector Database powered by Weaviate""")
64
  semantic_examples = [
65
  ["Computers"],
66
- ["Computer Software"],
67
- ["Pharmaceuticals"],
68
  ["Consumer Products"],
69
- ["Commodities"],
70
- ["Retail"],
71
- ["Manufacturing"],
72
- ["Energy"],
73
- ["National Defense"],
74
- ["Auto Makers"]
75
  ]
76
- gr.Markdown("""### Begin with a search.""")
77
  semantic_input_text = gr.Textbox(label="Enter a search concept or choose an example below:", value=semantic_examples[0][0])
78
  gr.Examples(semantic_examples,
79
  fn=respond,
80
  inputs=semantic_input_text, label="Example search concepts:"
81
  )
82
- vdb_button = gr.Button(value="Search the financial vector database.")
83
- vdb_button.click(fn=respond, inputs=[semantic_input_text], outputs=gr.Textbox(label="Search Results (Filters = Name)"))
84
 
85
 
86
  if __name__ == "__main__":
 
63
  gr.Markdown("""# Search the Jeopardy Vector Database powered by Weaviate""")
64
  semantic_examples = [
65
  ["Computers"],
66
+ ["Music"],
67
+ ["Wine"],
68
  ["Consumer Products"],
69
+ ["Sports"]
 
 
 
 
 
70
  ]
 
71
  semantic_input_text = gr.Textbox(label="Enter a search concept or choose an example below:", value=semantic_examples[0][0])
72
  gr.Examples(semantic_examples,
73
  fn=respond,
74
  inputs=semantic_input_text, label="Example search concepts:"
75
  )
76
+ vdb_button = gr.Button(value="Search the Jeopardy Vector Database.")
77
+ vdb_button.click(fn=respond, inputs=[semantic_input_text], outputs=gr.Textbox(label="Search Results"))
78
 
79
 
80
  if __name__ == "__main__":