Shreyas094 commited on
Commit
4d25f90
1 Parent(s): 1a40e01

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -720,6 +720,7 @@ def chat_function(message: str, history: List[Tuple[str, str]], num_results: int
720
  if query_type == "knowledge_base":
721
  response = generate_ai_response(message, chat_history, client, model)
722
  else: # web_search
 
723
  response = search_and_scrape(
724
  query=message,
725
  chat_history=chat_history,
@@ -738,10 +739,11 @@ def chat_function(message: str, history: List[Tuple[str, str]], num_results: int
738
 
739
  yield response
740
 
 
741
  iface = gr.ChatInterface(
742
  chat_function,
743
- title="Web Scraper for Financial News",
744
- description="Enter your query, and I'll search the web for the most recent and relevant financial news, scrape content, and provide summarized results.",
745
  theme=gr.Theme.from_hub("allenai/gradio-theme"),
746
  additional_inputs=[
747
  gr.Slider(5, 20, value=10, step=1, label="Number of initial results"),
 
720
  if query_type == "knowledge_base":
721
  response = generate_ai_response(message, chat_history, client, model)
722
  else: # web_search
723
+ yield gr.Info("Searching the web for up-to-date information...")
724
  response = search_and_scrape(
725
  query=message,
726
  chat_history=chat_history,
 
739
 
740
  yield response
741
 
742
+
743
  iface = gr.ChatInterface(
744
  chat_function,
745
+ title="Web Scraper for Financial News with Sentinel AI",
746
+ description="Ask Sentinel any question. It will search the web for recent information or use its knowledge base as appropriate.",
747
  theme=gr.Theme.from_hub("allenai/gradio-theme"),
748
  additional_inputs=[
749
  gr.Slider(5, 20, value=10, step=1, label="Number of initial results"),