Ifeanyi commited on
Commit
7f8604d
·
verified ·
1 Parent(s): b3a08f3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -8
app.py CHANGED
@@ -1,15 +1,15 @@
1
  import gradio as gr
2
- from geminisearch import webSearch
3
 
4
- app = gr.ChatInterface(webSearch,
5
  chatbot=gr.Chatbot(height=400),
6
  type = "messages",
7
- textbox=gr.Textbox(placeholder="Chat the web", container=False, scale=7),
8
- title="Gemini Web Chat",
9
  theme="upsatwal/mlsc_tiet",
10
- examples=["What is the current weather in Paris",
11
- "What is the current exchange rate between USD and EUR",
12
- "What is the current price of Bitcoin"])
13
 
14
  if __name__ == "__main__":
15
- app.launch(mcp_server=True)
 
1
  import gradio as gr
2
+ from retriever import retriever
3
 
4
+ app = gr.ChatInterface(retriever,
5
  chatbot=gr.Chatbot(height=400),
6
  type = "messages",
7
+ textbox=gr.Textbox(placeholder="Type your message here", container=False, scale=7),
8
+ title="Cache Augmented Generation System",
9
  theme="upsatwal/mlsc_tiet",
10
+ examples=["What position was applied for at DAME?",
11
+ "What is the date of the application to ACLED?",
12
+ "Summarize the application to Nansen in 5 bullet points."])
13
 
14
  if __name__ == "__main__":
15
+ app.launch()