Spaces:
Running
Running
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 | |
) | |