Shreyas094 commited on
Commit
1b91814
·
verified ·
1 Parent(s): 4d25f90

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -720,7 +720,8 @@ 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
- yield gr.Info("Searching the web for up-to-date information...")
 
724
  response = search_and_scrape(
725
  query=message,
726
  chat_history=chat_history,
 
720
  if query_type == "knowledge_base":
721
  response = generate_ai_response(message, chat_history, client, model)
722
  else: # web_search
723
+ gr.Info("Searching the web for up-to-date information...")
724
+ yield "Searching the web for up-to-date information..."
725
  response = search_and_scrape(
726
  query=message,
727
  chat_history=chat_history,