File size: 624 Bytes
345eb49
 
 
7c44ac0
 
 
 
 
 
 
 
 
 
 
 
345eb49
 
7c44ac0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import gradio as gr
from geminisearch import webSearch

with gr.Blocks(
    theme = "upsatwal/mlsc_tiet"
) as app:
  gr.Markdown("<center><h1><strong>Gemini Web Search</strong></h1></center>")
  gr.Markdown("<center><h3><strong>Search the web for information</strong></h3></center>")
  with gr.Column():
    gr.Markdown("<strong>Query Response</strong>")
    output = gr.Markdown()
    input = gr.Textbox(label="Query Field",placeholder="Type in your search query")
    btn = gr.Button("Google Search")
        
  btn.click(webSearch, inputs=[input], outputs=output)

if __name__ == "__main__":
  app.launch(mcp_server=True)