File size: 354 Bytes
89b9189
 
 
 
1d67f58
89b9189
6b7c2ac
f3aa8c2
6b7c2ac
89b9189
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
import gradio as gr
from chromadb_semantic_search_for_dataset import search_cases

iface = gr.Interface(
    fn=search_cases,
    inputs=gr.Textbox(label="Search for a case"),
    outputs=gr.Textbox(label="Top 5 Similar Cases"),
    title="Semantic Search for Cases",
    description="Type a case name to find the top 5 similar cases."
)

iface.launch()