import gradio as gr
from geminisearch import webSearch
with gr.Blocks(
theme = "upsatwal/mlsc_tiet"
) as app:
gr.HTML("
Gemini Web Search
")
gr.HTML("Search the web for information
")
with gr.Column():
input = gr.Textbox(label="Query Field",placeholder="Type in your search query")
btn = gr.Button("Google Search")
gr.HTML("Google Search Result
")
output = gr.Markdown()
btn.click(webSearch, inputs=[input], outputs=output)
if __name__ == "__main__":
app.launch(mcp_server=True)