File size: 354 Bytes
89b9189
 
 
 
1d67f58
89b9189
f3aa8c2
 
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 3 Similar Cases"),
    title="Semantic Search for Cases",
    description="Type a case name to find the top 3 similar cases."
)

iface.launch()