sharsh02 commited on
Commit
a5504ce
1 Parent(s): b189894

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -550,7 +550,7 @@ def generate_final_response(prompt, history):
550
  # logging.info("Final Ticker: %s", ticker)
551
 
552
  try:
553
- if (chat_completion_params['todays_news_flag'] or chat_completion_params['generic_query']) or len(ticker)<1:
554
  # logging.info("Getting Latest News Headlines")
555
  news_link.append(asyncio.run(trade_setup()))
556
  news_link.append(asyncio.run(get_duckai_news(subqueries)))
 
550
  # logging.info("Final Ticker: %s", ticker)
551
 
552
  try:
553
+ if (chat_completion_params['todays_news_flag'] or chat_completion_params['generic_query']) and len(ticker)<1:
554
  # logging.info("Getting Latest News Headlines")
555
  news_link.append(asyncio.run(trade_setup()))
556
  news_link.append(asyncio.run(get_duckai_news(subqueries)))