rbbist commited on
Commit
89b9189
·
verified ·
1 Parent(s): 4a44bd1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +12 -12
app.py CHANGED
@@ -1,12 +1,12 @@
1
- import gradio as gr
2
- from menu_chromadb_semantic_search import search_dishes
3
-
4
- iface = gr.Interface(
5
- fn=search_dishes,
6
- inputs=gr.Textbox(label="Search for a dish"),
7
- outputs=gr.Textbox(label="Top 5 Similar Dishes"),
8
- title="Menu Item Semantic Search",
9
- description="Type a dish name to find the top 5 similar menu items."
10
- )
11
-
12
- iface.launch()
 
1
+ import gradio as gr
2
+ from chromadb_semantic_search_for_dataset import search_cases
3
+
4
+ iface = gr.Interface(
5
+ fn=search_dishes,
6
+ inputs=gr.Textbox(label="Search for a case"),
7
+ outputs=gr.Textbox(label="Top 3 Similar Dishes"),
8
+ title="Case Based Semantic Search",
9
+ description="Type a case name to find the top 3 similar cases."
10
+ )
11
+
12
+ iface.launch()