Spaces:
Running
Running
Update app.py
Browse files
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'])
|
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)))
|