File size: 473 Bytes
ec765f7
 
 
 
 
 
 
 
 
 
 
91925c4
 
b342c48
ec765f7
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
import gradio as gr


# Set up interface
ui = gr.Interface(
    fn=generate,
    inputs=[
        gr.Textbox(
            label="Query", 
            lines=2, 
            placeholder="Enter query here",
            info="The query to search for in the vector database" 
        )]
)

# Launch with MCP server enabled
if __name__ == "__main__":
    ui.launch(
        server_name="0.0.0.0",
        server_port=7860,
        #mcp_server=True,
        show_error=True
    )