File size: 672 Bytes
345eb49
 
 
 
1e8c312
345eb49
b3a08f3
 
f904716
345eb49
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import gradio as gr
from geminisearch import webSearch

app = gr.ChatInterface(webSearch,
                      chatbot=gr.Chatbot(height=400),
                      type = "messages",
                      textbox=gr.Textbox(placeholder="Chat the web", container=False, scale=7),
                      title="Gemini Web Chat",
                      theme="upsatwal/mlsc_tiet",
                      examples=["What is the current weather in Paris",
                                "What is the current exchange rate between USD and EUR",
                                "What is the current price of Bitcoin"])

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